3D Java - what do I need?

The Pigeon

Cool Member
Reaction score
0
I need some help learning how to do 3D games with java. I've searched high and low on the internets, but I haven't found a 3D java tutorial which tells me all the current software I need and how to use it. Usually they're 10 years old or old enough that the software they list isn't current. What should I do?
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
First link on google, "java 3d engine".
http://www.jpct.net/
Now you should have a Java compiler and you're on your way.

However, Java is an interpreted language meaning it isn't fast in execution compared to most compiled languages. C++ has a larger set of available library's just because it's so damn fast in execution.
 

Slapshot136

Divide et impera
Reaction score
471
like above, java isn't made for 3d games.. it's just not that fast to keep up with other languages

that being said, take a look at this
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Please, don't use Java for 3D games!
Use C or C++.

Java is a terribly slow language. Not suitable for 3D gaming at all.
 

The Pigeon

Cool Member
Reaction score
0
Thanks for your comments replies ^_^. My problem is that C++ is a pain in the arse to find any information on and requires buggy software like MS VS studio to run on. I'm trying to make a game, but my uni games course missed a few important things. What I want to know is how to do:

Message boxes (Display variables)
Input Boxes (enter number/characters/press buttons/scroll down a list)
Load/Save files (load and save your game)

I had to use some pretty crude work arounds for input and message boxes, and found nothing on loading/saving files.

Ideally I want to do each of these things in a few lines of code (including classes if necessary). The MSDN website is pretty incomprehensible and intimidating - i.e. pages of code for a message box whereas java can do it in one...
 

Sintoras

Shaaakaa!
Reaction score
45
Can't say I know java but saving and loading is pretty much the same in all languages. What you need to know is basic Input and Output concerning files. Just store the necessary information in a file which can look along the lines of this, depending on what you need. XML would be suitable as well, as all you're doing is parsing a file and loading the information.

Save Slot 1 [date&time]

Stats
Location
Progress
Quests
Time Played
etc....

You can crypt this to stop people from "hacking" their progress or changing around values.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
> C++ is a pain in the arse to find any information on and requires buggy software like MS VS studio to run on.

C is easier, and you don't need VS.
Use Dev-CPP or Code::Blocks (I personally can't get Code::Blocks to work. :/)
 

ertaboy356b

Old School Gamer
Reaction score
86
Thanks for your comments replies ^_^. My problem is that C++ is a pain in the arse to find any information on and requires buggy software like MS VS studio to run on. I'm trying to make a game, but my uni games course missed a few important things. What I want to know is how to do:

Message boxes (Display variables)
Input Boxes (enter number/characters/press buttons/scroll down a list)
Load/Save files (load and save your game)

I had to use some pretty crude work arounds for input and message boxes, and found nothing on loading/saving files.

Ideally I want to do each of these things in a few lines of code (including classes if necessary). The MSDN website is pretty incomprehensible and intimidating - i.e. pages of code for a message box whereas java can do it in one...

Use Code::Blocks.. I use it on Vista.. You'll need a little tweaking if you're on vista though..
 

codemonkey

Code monkey not crazy, just proud.
Reaction score
66
> C++ is a pain in the arse to find any information on and requires buggy software like MS VS studio to run on.

C is easier, and you don't need VS.
Use Dev-CPP or Code::Blocks (I personally can't get Code::Blocks to work. :/)

Lies C++ is much easier.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
C++ is OOP, C is not.
I find non-OOP syntax to be easier to learn.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
I know you don't, but learning C++ and not using OOP is a little pointless, I think.
 

UndeadDragon

Super Moderator
Reaction score
447
I know you don't, but learning C++ and not using OOP is a little pointless, I think.

But then it would be pretty much the same as C, so would that make C pointless?
 

The Pigeon

Cool Member
Reaction score
0
A couple of questions;

1)
"What you need to know is basic Input and Output concerning files. Just store the necessary information in a file which can look along the lines of this, depending on what you need. XML would be suitable as well, as all you're doing is parsing a file and loading the information."

What site would teach me I/O for files? I've found one for java, but not C++.

2)
"Code::Blocks"

What are blocks? I haven't seen them before (I am using Vista by the way). I know methods, structs, classes and template classes (seen them anyway), but not blocks.


I want to stick to C++ or Java as I've done units and written programs using them. Python I'll probably learn at a later date as apparently one of my local games companies uses it. I think I'll translate my code into C++ from java (which admittedly isn't hard to do), but message and input boxes and files i'm not sure of. I might try using irrlicht for the boxes, though can't remember if it could do them. I think I once learned how to save an array as a paint .bmp image, so I might use that as a base, but how to save the state of an entire program, i'm not sure.
 

Xorifelse

I'd love to elaborate about discussions...........
Reaction score
87
My problem is that C++ is a pain in the arse to find any information on and requires buggy software like MS VS studio to run on.

There are a couple of things wrong here:

1. Microsoft Visual Studio is not buggy, as said before you configured it wrong.
2. In this IDE (MSVC), you're programming for Windows, which is Visual C++ with different set of library's than the normal C++.
3. C++ doesn't require any software to run on, you just need a compiler such as the GNU GCC, this is required for any compiled language.
4. C++ has a wide set of available library's which are fully documented, take a look at curl and truecrypt for example. You just have to Google it and not be lazy.

On top of that, there are a lot of available shared library's which can be with a simple click embedded or included into your application.


I don't get it, why do you make statements like that while you clearly don't know what you're talking about?


1)
"What you need to know is basic Input and Output concerning files. Just store the necessary information in a file which can look along the lines of this, depending on what you need. XML would be suitable as well, as all you're doing is parsing a file and loading the information."

What site would teach me I/O for files? I've found one for java, but not C++.
As said before, you just got to know where to find and use Google properly. Let us do a query of.. "C++ XML Library".
And look what we got here:
  • Xerces-C++ XML Parser
  • TinyXml Main Page
From experience, TinyXML is good and fast for simple XML sheets, it supports all basic things.


2)
"Code::Blocks"
What are blocks? I haven't seen them before (I am using Vista by the way). I know methods, structs, classes and template classes (seen them anyway), but not blocks.
Alright, I've had it. Visit this page or ANY OTHER search engine.

First result on the following search engines:
  • Google - Codeblocks is a cross-platform IDE built around wxWidgets, designed to be extensible and configurable. Runs on Windows and Linux.
  • Bing - Codeblocks is a cross-platform IDE built around wxWidgets, designed to be extensible and configurable. Runs on Windows and Linux.
  • Yahoo - Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users. It is designed to be very extensible and fully configurable.

Do I need to continue or do you get the point? The time you spend writing that post you would have saved you a lot of time and effort to just search it on the web in the first place.

Seriously, if I were you I'd just stick with MSVS. It's much less complicated than codeblocks. In there you can create a GUI in an instance while in Code::Blocks you need to import complete sets of library's.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top