• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:21
CEST 03:21
KST 10:21
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL53Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation The GOAT ranking of GOAT rankings Statistics for vetoed/disliked maps How does the number of casters affect your enjoyment of esports? Esports World Cup 2025 - Final Player Roster
Tourneys
Korean Starcraft League Week 77 Master Swan Open (Global Bronze-Master 2) RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
Flash Announces Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ Player “Jedi” cheat on CSL Unit and Spell Similarities Help: rep cant save
Tourneys
[Megathread] Daily Proleagues [BSL20] Grand Finals - Sunday 20:00 CET Small VOD Thread 2.0 [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Trading/Investing Thread Russo-Ukrainian War Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 606 users

The Big Programming Thread - Page 105

Forum Index > General Forum
Post a Reply
Prev 1 103 104 105 106 107 1031 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Pawsom
Profile Blog Joined February 2009
United States928 Posts
January 05 2012 21:06 GMT
#2081
On January 05 2012 16:39 Millitron wrote:

How do I get a random seed?

I've been reading http://www.cplusplus.com/reference/clibrary/cstdlib/srand/ and it doesn't really say how I should select my seed. Should it be something like srand(rand()) every time I need to spawn something?



You could use the time as a parameter for your seed, which would probably be psuedorandom enough for your purpose
Chaosvuistje
Profile Joined April 2010
Netherlands2581 Posts
January 05 2012 21:09 GMT
#2082
Does anybody here have any experience with the Camera object in Papervision3D ( Flash library for 3d engine )? I've set it up but the perspective on the camera really messes up the preciseness of the placed pixels while I need to make a transition between a regular bitmap and a 3D plane as unnoticable as possible...

Perhaps there are other libraries out there that fit the job better?
Millitron
Profile Blog Joined August 2010
United States2611 Posts
January 06 2012 00:39 GMT
#2083
On January 06 2012 06:06 Pawsom wrote:
Show nested quote +
On January 05 2012 16:39 Millitron wrote:

How do I get a random seed?

I've been reading http://www.cplusplus.com/reference/clibrary/cstdlib/srand/ and it doesn't really say how I should select my seed. Should it be something like srand(rand()) every time I need to spawn something?



You could use the time as a parameter for your seed, which would probably be psuedorandom enough for your purpose

But the spawning happens at fixed intervals, so it isn't all that random. Will it still be random enough for it to not matter? I mean, I know I don't need absolutely perfectly random numbers, but how random is random enough?
Who called in the fleet?
klo8
Profile Joined August 2010
Austria1960 Posts
January 06 2012 01:48 GMT
#2084
On January 02 2012 22:37 FranzP wrote:
Show nested quote +
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.
This post is clearly not a hurr, as you can see from the graph, the durr never intersects with the derp.
Uranium
Profile Blog Joined May 2010
United States1077 Posts
January 06 2012 01:55 GMT
#2085
On January 06 2012 09:39 Millitron wrote:
Show nested quote +
On January 06 2012 06:06 Pawsom wrote:
On January 05 2012 16:39 Millitron wrote:

How do I get a random seed?

I've been reading http://www.cplusplus.com/reference/clibrary/cstdlib/srand/ and it doesn't really say how I should select my seed. Should it be something like srand(rand()) every time I need to spawn something?



You could use the time as a parameter for your seed, which would probably be psuedorandom enough for your purpose

But the spawning happens at fixed intervals, so it isn't all that random. Will it still be random enough for it to not matter? I mean, I know I don't need absolutely perfectly random numbers, but how random is random enough?

You only need to seed your randomizer once at the beginning of execution, not every time you spawn. The point of seeding the randomizer is just that you will get different random numbers every time you run the program.
"Sentry imba! You see? YOU SEE??!!" - Sen | "Marauder die die!" - oGsMC | "Oh my god, she texted me back!" - Day[9]
Uranium
Profile Blog Joined May 2010
United States1077 Posts
January 06 2012 01:59 GMT
#2086
On January 06 2012 10:48 klo8 wrote:
Show nested quote +
On January 02 2012 22:37 FranzP wrote:
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.

Just to clarify, XNA encapsulates DirectX and does a lot of the underlying work for you. If you want to use OpenGL and perhaps go a bit more in-depth with your engine programming, there are a number of C# wrappers for OpenGL out there. I personally have used Tao and found it to be quite sufficient, but I'm sure that there are merits to the others as well.
"Sentry imba! You see? YOU SEE??!!" - Sen | "Marauder die die!" - oGsMC | "Oh my god, she texted me back!" - Day[9]
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
January 06 2012 03:12 GMT
#2087
That JMonkey Engine is pretty good and incredibly easy to use once you learn how to do stuff with it, besides its java and I like java! And apparently you can port your games to Android.

A downside that I can think off is the lack of an organized documentation and tutorials, you have to search and look into their example codings and figure out what does what by yourself.

I'm having trouble using custom Shaders but thats because it has been 2 years since I last wrote a GLSL code

If anyone knows how to create a shader to make a sphere look like the sun please teach me!
"When the geyser died, a probe came out" - SirJolt
Millitron
Profile Blog Joined August 2010
United States2611 Posts
January 06 2012 04:01 GMT
#2088
On January 06 2012 10:55 Uranium wrote:
Show nested quote +
On January 06 2012 09:39 Millitron wrote:
On January 06 2012 06:06 Pawsom wrote:
On January 05 2012 16:39 Millitron wrote:

How do I get a random seed?

I've been reading http://www.cplusplus.com/reference/clibrary/cstdlib/srand/ and it doesn't really say how I should select my seed. Should it be something like srand(rand()) every time I need to spawn something?



You could use the time as a parameter for your seed, which would probably be psuedorandom enough for your purpose

But the spawning happens at fixed intervals, so it isn't all that random. Will it still be random enough for it to not matter? I mean, I know I don't need absolutely perfectly random numbers, but how random is random enough?

You only need to seed your randomizer once at the beginning of execution, not every time you spawn. The point of seeding the randomizer is just that you will get different random numbers every time you run the program.

OH, thank you, I understand now.
Who called in the fleet?
Leftwing
Profile Blog Joined January 2011
Canada229 Posts
January 06 2012 06:26 GMT
#2089
On January 06 2012 10:59 Uranium wrote:
Show nested quote +
On January 06 2012 10:48 klo8 wrote:
On January 02 2012 22:37 FranzP wrote:
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.

Just to clarify, XNA encapsulates DirectX and does a lot of the underlying work for you. If you want to use OpenGL and perhaps go a bit more in-depth with your engine programming, there are a number of C# wrappers for OpenGL out there. I personally have used Tao and found it to be quite sufficient, but I'm sure that there are merits to the others as well.


So what I am understanding in this is that Java isn't the proper choice to use for creating games, especially 3D games, and that C# is the language that is standard for video game development. What I also understand from this is that XNA is really just a provider of a sufficient 3D library?
Roban
Profile Joined August 2010
Netherlands73 Posts
January 06 2012 10:51 GMT
#2090
On January 06 2012 15:26 Leftwing wrote:
Show nested quote +
On January 06 2012 10:59 Uranium wrote:
On January 06 2012 10:48 klo8 wrote:
On January 02 2012 22:37 FranzP wrote:
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.

Just to clarify, XNA encapsulates DirectX and does a lot of the underlying work for you. If you want to use OpenGL and perhaps go a bit more in-depth with your engine programming, there are a number of C# wrappers for OpenGL out there. I personally have used Tao and found it to be quite sufficient, but I'm sure that there are merits to the others as well.


So what I am understanding in this is that Java isn't the proper choice to use for creating games, especially 3D games, and that C# is the language that is standard for video game development. What I also understand from this is that XNA is really just a provider of a sufficient 3D library?

It depends on the video game.
If you want to write something like CounterStrike or SC2, you will probably use c++.
If you want to write a game for Android, it will always be Java.
if you want to write a simple game, it doesn't really matter that much imo. Java, C#, Flash, it will be sufficient.
Gesh
Profile Joined November 2010
Bulgaria69 Posts
Last Edited: 2012-01-06 10:57:20
January 06 2012 10:56 GMT
#2091
On January 06 2012 19:51 Roban wrote:
Show nested quote +
On January 06 2012 15:26 Leftwing wrote:
On January 06 2012 10:59 Uranium wrote:
On January 06 2012 10:48 klo8 wrote:
On January 02 2012 22:37 FranzP wrote:
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.

Just to clarify, XNA encapsulates DirectX and does a lot of the underlying work for you. If you want to use OpenGL and perhaps go a bit more in-depth with your engine programming, there are a number of C# wrappers for OpenGL out there. I personally have used Tao and found it to be quite sufficient, but I'm sure that there are merits to the others as well.


So what I am understanding in this is that Java isn't the proper choice to use for creating games, especially 3D games, and that C# is the language that is standard for video game development. What I also understand from this is that XNA is really just a provider of a sufficient 3D library?

It depends on the video game.
If you want to write something like CounterStrike or SC2, you will probably use c++.
If you want to write a game for Android, it will always be Java.
if you want to write a simple game, it doesn't really matter that much imo. Java, C#, Flash, it will be sufficient.


What he said, plus - XNA is pretty much the choise if you want to make a game for windows phone + xna's keyboard support sucks donkey balls - you don't get the order of keys pressed and the information you get from the keyboard is actually frame dependant, which means with dropped frames you will not get the keys pressed. Oh, and C is still used widely.
Herper
Profile Joined January 2011
501 Posts
January 06 2012 10:58 GMT
#2092
On January 06 2012 15:26 Leftwing wrote:
Show nested quote +
On January 06 2012 10:59 Uranium wrote:
On January 06 2012 10:48 klo8 wrote:
On January 02 2012 22:37 FranzP wrote:
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.

Just to clarify, XNA encapsulates DirectX and does a lot of the underlying work for you. If you want to use OpenGL and perhaps go a bit more in-depth with your engine programming, there are a number of C# wrappers for OpenGL out there. I personally have used Tao and found it to be quite sufficient, but I'm sure that there are merits to the others as well.


So what I am understanding in this is that Java isn't the proper choice to use for creating games, especially 3D games, and that C# is the language that is standard for video game development. What I also understand from this is that XNA is really just a provider of a sufficient 3D library?


Triple A games are usually C++
If you want a multiplatform game then Java
Otherwise C#, at the end of the day it doesn't really matter. Just that C# has a good framework with XNA, Bastion was made with C#, for example, and it is a very solid game.
heishe
Profile Blog Joined June 2009
Germany2284 Posts
Last Edited: 2012-01-06 11:13:32
January 06 2012 11:10 GMT
#2093
On January 06 2012 19:58 Herper wrote:
Show nested quote +
On January 06 2012 15:26 Leftwing wrote:
On January 06 2012 10:59 Uranium wrote:
On January 06 2012 10:48 klo8 wrote:
On January 02 2012 22:37 FranzP wrote:
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.

Just to clarify, XNA encapsulates DirectX and does a lot of the underlying work for you. If you want to use OpenGL and perhaps go a bit more in-depth with your engine programming, there are a number of C# wrappers for OpenGL out there. I personally have used Tao and found it to be quite sufficient, but I'm sure that there are merits to the others as well.


So what I am understanding in this is that Java isn't the proper choice to use for creating games, especially 3D games, and that C# is the language that is standard for video game development. What I also understand from this is that XNA is really just a provider of a sufficient 3D library?


Triple A games are usually C++
If you want a multiplatform game then Java
Otherwise C#, at the end of the day it doesn't really matter. Just that C# has a good framework with XNA, Bastion was made with C#, for example, and it is a very solid game.


Not just usually... you'd have to search for a long time and really hard to find a triple A game that isn't done in C++. With 7 year old hardware (the current console generation) you have to apply optimizations to games that you simply can not do in Java or C#.

Most games written in C# using XNA are indie games that end up in the Live Marketplace or the indie games section. On the PS3, even indies just use the devkit (which is expensive for someone with no money) and C++, too. On the Wii, I'm not sure... never looked at it. The only place where you find Java are Android devices and some PC games (of course, Minecraft is written in Java).

Oh man I sound like a C++ fanboy in this thread. Well, I am. But that said, if you're new to game programming, you're much better off just using C#. The reason I say "don't use Java" is because the game developing community in Java is really small. You will have a very hard time finding libraries for high level stuff that you want to do (remember rendering is only the smallest part of a game - you'll need much more if you don't want to do everything by yourself).

At least when you're learning, that is. The first couple of years your priority will not be to get multiplatform games so that many people can play your game (nobody will want to, anyways), but to actually finish small protoypes. This in itself is hard enough. It will be a long, long time before you even have the capability (mostly artistically - designing games is very, very hard. But technically too, of course. It just takes experience to get how to design the software-architecture of a game) to create something that anyone wants to play.

Also, XNA does more than just provide a (very simple and nice) wrapper around DirectGraphics. It has an easily extendable content pipeline which makes it easy to load and use assets (textures, shaders, sounds etc.). It also provides some basic audio-playback functionality and of course user-input methods (for keyboard/mouse and the XBOX360 controller... I didn't use XNA for a while so I'm not sure if it actually has joystick support, although you should be able to address a joystick using the controller interface).
If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
Manit0u
Profile Blog Joined August 2004
Poland17243 Posts
January 06 2012 15:20 GMT
#2094
Don't want to derail or anything but I thought I'll post here something refreshing for those who don't visit the random pics thread:

http://www.addedbytes.com/blog/if-php-were-british/

Have a jolly good laugh ladies and gentlemen.
Time is precious. Waste it wisely.
SCbiff
Profile Joined May 2010
110 Posts
January 06 2012 21:24 GMT
#2095
On January 04 2012 04:57 obesechicken13 wrote:
So I figure I've wasted a lot of time this break. What should I spend my time on programming to not feel like complete horseshit? I'm reviewing some lynda videos right now but the ones on excel and ios are just really boring.


Not sure exactly what you're looking for or your level of expertise, but I suggest learning a new language. I recently came across clojure.
nakam
Profile Joined April 2010
Sweden245 Posts
Last Edited: 2012-01-07 00:14:10
January 07 2012 00:13 GMT
#2096
So I've been reading about how to handle logins and how to remember logins http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ.

This is how I interpret the link above:
- Google suggests that a session ID should be created (and probably stored in database) to pass along every time client sends data to server.
- This session ID is the only login information that is to be stored in cookies.

Now to my questions:
1. Do I need to also store username in cookies or is this bad?
2. Is it ok to just renew the session ID cookie duration each time the user visit the website or should I generate a new session ID?
TL Local Timezone Script - http://www.teamliquid.net/forum/viewmessage.php?topic_id=277156
Manit0u
Profile Blog Joined August 2004
Poland17243 Posts
January 07 2012 02:51 GMT
#2097
On January 07 2012 06:24 SCbiff wrote:
Show nested quote +
On January 04 2012 04:57 obesechicken13 wrote:
So I figure I've wasted a lot of time this break. What should I spend my time on programming to not feel like complete horseshit? I'm reviewing some lynda videos right now but the ones on excel and ios are just really boring.


Not sure exactly what you're looking for or your level of expertise, but I suggest learning a new language. I recently came across clojure.


Dude, why won't you convince him to learn C? It's easily translatable to C++, C# and basically every other language out there. At least you get the basics and you learn stuff from the ground up, not the other way around.
Time is precious. Waste it wisely.
Leftwing
Profile Blog Joined January 2011
Canada229 Posts
January 07 2012 04:03 GMT
#2098
On January 06 2012 20:10 heishe wrote:
Show nested quote +
On January 06 2012 19:58 Herper wrote:
On January 06 2012 15:26 Leftwing wrote:
On January 06 2012 10:59 Uranium wrote:
On January 06 2012 10:48 klo8 wrote:
On January 02 2012 22:37 FranzP wrote:
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.

Just to clarify, XNA encapsulates DirectX and does a lot of the underlying work for you. If you want to use OpenGL and perhaps go a bit more in-depth with your engine programming, there are a number of C# wrappers for OpenGL out there. I personally have used Tao and found it to be quite sufficient, but I'm sure that there are merits to the others as well.


So what I am understanding in this is that Java isn't the proper choice to use for creating games, especially 3D games, and that C# is the language that is standard for video game development. What I also understand from this is that XNA is really just a provider of a sufficient 3D library?


Triple A games are usually C++
If you want a multiplatform game then Java
Otherwise C#, at the end of the day it doesn't really matter. Just that C# has a good framework with XNA, Bastion was made with C#, for example, and it is a very solid game.


Not just usually... you'd have to search for a long time and really hard to find a triple A game that isn't done in C++. With 7 year old hardware (the current console generation) you have to apply optimizations to games that you simply can not do in Java or C#.

Most games written in C# using XNA are indie games that end up in the Live Marketplace or the indie games section. On the PS3, even indies just use the devkit (which is expensive for someone with no money) and C++, too. On the Wii, I'm not sure... never looked at it. The only place where you find Java are Android devices and some PC games (of course, Minecraft is written in Java).

Oh man I sound like a C++ fanboy in this thread. Well, I am. But that said, if you're new to game programming, you're much better off just using C#. The reason I say "don't use Java" is because the game developing community in Java is really small. You will have a very hard time finding libraries for high level stuff that you want to do (remember rendering is only the smallest part of a game - you'll need much more if you don't want to do everything by yourself).

At least when you're learning, that is. The first couple of years your priority will not be to get multiplatform games so that many people can play your game (nobody will want to, anyways), but to actually finish small protoypes. This in itself is hard enough. It will be a long, long time before you even have the capability (mostly artistically - designing games is very, very hard. But technically too, of course. It just takes experience to get how to design the software-architecture of a game) to create something that anyone wants to play.

Also, XNA does more than just provide a (very simple and nice) wrapper around DirectGraphics. It has an easily extendable content pipeline which makes it easy to load and use assets (textures, shaders, sounds etc.). It also provides some basic audio-playback functionality and of course user-input methods (for keyboard/mouse and the XBOX360 controller... I didn't use XNA for a while so I'm not sure if it actually has joystick support, although you should be able to address a joystick using the controller interface).


That's interesting to know. When I compare C+ to Java I find that learning Java is a lot more work than C++. Also I was wondering if there are any major communities around coding (java or C++), or more specifically game coding?
Gesh
Profile Joined November 2010
Bulgaria69 Posts
Last Edited: 2012-01-07 15:25:59
January 07 2012 15:24 GMT
#2099
On January 07 2012 13:03 Leftwing wrote:
Show nested quote +
On January 06 2012 20:10 heishe wrote:
On January 06 2012 19:58 Herper wrote:
On January 06 2012 15:26 Leftwing wrote:
On January 06 2012 10:59 Uranium wrote:
On January 06 2012 10:48 klo8 wrote:
On January 02 2012 22:37 FranzP wrote:
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.

Just to clarify, XNA encapsulates DirectX and does a lot of the underlying work for you. If you want to use OpenGL and perhaps go a bit more in-depth with your engine programming, there are a number of C# wrappers for OpenGL out there. I personally have used Tao and found it to be quite sufficient, but I'm sure that there are merits to the others as well.


So what I am understanding in this is that Java isn't the proper choice to use for creating games, especially 3D games, and that C# is the language that is standard for video game development. What I also understand from this is that XNA is really just a provider of a sufficient 3D library?


Triple A games are usually C++
If you want a multiplatform game then Java
Otherwise C#, at the end of the day it doesn't really matter. Just that C# has a good framework with XNA, Bastion was made with C#, for example, and it is a very solid game.


Not just usually... you'd have to search for a long time and really hard to find a triple A game that isn't done in C++. With 7 year old hardware (the current console generation) you have to apply optimizations to games that you simply can not do in Java or C#.

Most games written in C# using XNA are indie games that end up in the Live Marketplace or the indie games section. On the PS3, even indies just use the devkit (which is expensive for someone with no money) and C++, too. On the Wii, I'm not sure... never looked at it. The only place where you find Java are Android devices and some PC games (of course, Minecraft is written in Java).

Oh man I sound like a C++ fanboy in this thread. Well, I am. But that said, if you're new to game programming, you're much better off just using C#. The reason I say "don't use Java" is because the game developing community in Java is really small. You will have a very hard time finding libraries for high level stuff that you want to do (remember rendering is only the smallest part of a game - you'll need much more if you don't want to do everything by yourself).

At least when you're learning, that is. The first couple of years your priority will not be to get multiplatform games so that many people can play your game (nobody will want to, anyways), but to actually finish small protoypes. This in itself is hard enough. It will be a long, long time before you even have the capability (mostly artistically - designing games is very, very hard. But technically too, of course. It just takes experience to get how to design the software-architecture of a game) to create something that anyone wants to play.

Also, XNA does more than just provide a (very simple and nice) wrapper around DirectGraphics. It has an easily extendable content pipeline which makes it easy to load and use assets (textures, shaders, sounds etc.). It also provides some basic audio-playback functionality and of course user-input methods (for keyboard/mouse and the XBOX360 controller... I didn't use XNA for a while so I'm not sure if it actually has joystick support, although you should be able to address a joystick using the controller interface).


That's interesting to know. When I compare C+ to Java I find that learning Java is a lot more work than C++. Also I was wondering if there are any major communities around coding (java or C++), or more specifically game coding?


You are pretty much mistaken. Learning C++ is more work, because the language has many quirks, most of them you will encounter not in the books, but when you are trying to accomplish something non trivial. (A very very very basic example is that you cannot shove auto_ptr in a standard container - it is trivial, but is surprising how few people know this). And I take it you haven't checked the boost libraries. As about communities, maybe you should check gamedev.net, google for flipcode - this place is dead, but there are still some usefull articles. Check out gamasutra, there are a lot of resources there.
heishe
Profile Blog Joined June 2009
Germany2284 Posts
January 07 2012 16:35 GMT
#2100
On January 08 2012 00:24 Gesh wrote:
Show nested quote +
On January 07 2012 13:03 Leftwing wrote:
On January 06 2012 20:10 heishe wrote:
On January 06 2012 19:58 Herper wrote:
On January 06 2012 15:26 Leftwing wrote:
On January 06 2012 10:59 Uranium wrote:
On January 06 2012 10:48 klo8 wrote:
On January 02 2012 22:37 FranzP wrote:
On January 02 2012 22:31 Warri wrote:
Can anyone recommend me a rather recent tutorial on how to create 3d games in java? All i can find with google are tutorials from 2004 and older, but i guess a lot changed since then so its better to use a more recent one?


The most obvious reason I can think of "Why there is no tutorial to do 3D java games" is because java sucks for making games. Most 3D engines are not made for java because it is not in the philosophy of the java language (and it is a lot less efficient than other language because of the JVM).

So you can make a game in 3D using java and Java3D (http://fivedots.coe.psu.ac.th/~ad/jg/) but I don't think that would be the right choice of language.

The simplest way to do a 3D game must be XNA and C# (it's not far from java anyway)

Purely in terms of performance, C# and Java are pretty much the same, so that's definitely not a reason against Java when you compare it with C#. There is no 3D library that I know of that is as good as XNA for Java though and I personally like C# a lot more than Java, it feels a lot more modern.

Just to clarify, XNA encapsulates DirectX and does a lot of the underlying work for you. If you want to use OpenGL and perhaps go a bit more in-depth with your engine programming, there are a number of C# wrappers for OpenGL out there. I personally have used Tao and found it to be quite sufficient, but I'm sure that there are merits to the others as well.


So what I am understanding in this is that Java isn't the proper choice to use for creating games, especially 3D games, and that C# is the language that is standard for video game development. What I also understand from this is that XNA is really just a provider of a sufficient 3D library?


Triple A games are usually C++
If you want a multiplatform game then Java
Otherwise C#, at the end of the day it doesn't really matter. Just that C# has a good framework with XNA, Bastion was made with C#, for example, and it is a very solid game.


Not just usually... you'd have to search for a long time and really hard to find a triple A game that isn't done in C++. With 7 year old hardware (the current console generation) you have to apply optimizations to games that you simply can not do in Java or C#.

Most games written in C# using XNA are indie games that end up in the Live Marketplace or the indie games section. On the PS3, even indies just use the devkit (which is expensive for someone with no money) and C++, too. On the Wii, I'm not sure... never looked at it. The only place where you find Java are Android devices and some PC games (of course, Minecraft is written in Java).

Oh man I sound like a C++ fanboy in this thread. Well, I am. But that said, if you're new to game programming, you're much better off just using C#. The reason I say "don't use Java" is because the game developing community in Java is really small. You will have a very hard time finding libraries for high level stuff that you want to do (remember rendering is only the smallest part of a game - you'll need much more if you don't want to do everything by yourself).

At least when you're learning, that is. The first couple of years your priority will not be to get multiplatform games so that many people can play your game (nobody will want to, anyways), but to actually finish small protoypes. This in itself is hard enough. It will be a long, long time before you even have the capability (mostly artistically - designing games is very, very hard. But technically too, of course. It just takes experience to get how to design the software-architecture of a game) to create something that anyone wants to play.

Also, XNA does more than just provide a (very simple and nice) wrapper around DirectGraphics. It has an easily extendable content pipeline which makes it easy to load and use assets (textures, shaders, sounds etc.). It also provides some basic audio-playback functionality and of course user-input methods (for keyboard/mouse and the XBOX360 controller... I didn't use XNA for a while so I'm not sure if it actually has joystick support, although you should be able to address a joystick using the controller interface).


That's interesting to know. When I compare C+ to Java I find that learning Java is a lot more work than C++. Also I was wondering if there are any major communities around coding (java or C++), or more specifically game coding?


You are pretty much mistaken. Learning C++ is more work, because the language has many quirks, most of them you will encounter not in the books, but when you are trying to accomplish something non trivial. (A very very very basic example is that you cannot shove auto_ptr in a standard container - it is trivial, but is surprising how few people know this). And I take it you haven't checked the boost libraries. As about communities, maybe you should check gamedev.net, google for flipcode - this place is dead, but there are still some usefull articles. Check out gamasutra, there are a lot of resources there.


That is true. The original creator of the C++ language once estimated his skill in c++ to 7 on a scale from 1 to 10. Template metaprogramming is the biggest reason for that. Few people are actually able to understand written metaprogram code like they can read normal code, and even fewer people can actually use template metaprogramming to their advantage. Despite it being by far the most powerful tool C++ has to offer. The entire C++ standard committee didn't really realize that they'd created a turing-complete sublanguage in C++ with templates until one of their members showed a faulty program that didn't compile but produced prime numbers during compilation.

It's hard to explain this, and when you read relatively theoretical books that just introduce basic concepts about template metaprogramming (like "Modern C++ Design") it's hard to see how those techniques can actually be of usage outside of the cases that were shown in the book. The fact that there are so few libraries out there which actually utilize it well makes it even harder to see what it can do in practice.

A good example of a library that heavily uses templates to great, great advantage is "luabind". It's essentially a C++ wrapper around the standard Lua (the scripting language) libraries provided by the developer, which is written entirely in C. You can take a look at it here:

http://www.rasterbar.com/products/luabind/docs.html

If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
Prev 1 103 104 105 106 107 1031 Next
Please log in or register to reply.
Live Events Refresh
Next event in 1h 39m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 241
RuFF_SC2 128
Livibee 98
StarCraft: Brood War
Sea 485
NaDa 35
Icarus 1
Dota 2
420jenkins668
capcasts119
NeuroSwarm92
febbydoto10
LuMiX1
League of Legends
JimRising 707
Counter-Strike
Stewie2K678
taco 617
Other Games
summit1g10365
tarik_tv4654
ViBE191
Organizations
Other Games
BasetradeTV70
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH237
• Hupsaiya 108
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki13
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift4827
• Jankos1655
• masondota21011
Upcoming Events
Korean StarCraft League
1h 39m
CranKy Ducklings
8h 39m
RSL Revival
8h 39m
ByuN vs Cham
herO vs Reynor
FEL
14h 39m
RSL Revival
1d 8h
Clem vs Classic
SHIN vs Cure
FEL
1d 10h
BSL: ProLeague
1d 16h
Dewalt vs Bonyth
Replay Cast
2 days
Sparkling Tuna Cup
3 days
The PondCast
4 days
[ Show More ]
Replay Cast
4 days
RSL Revival
5 days
Replay Cast
5 days
RSL Revival
6 days
Liquipedia Results

Completed

BSL 2v2 Season 3
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.