• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:58
CET 04:58
KST 12:58
  • 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
[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9
Community News
2025 RSL Offline Finals Dates + Ticket Sales!9BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION1Crank Gathers Season 2: SC II Pro Teams9Merivale 8 Open - LAN - Stellar Fest3Chinese SC2 server to reopen; live all-star event in Hangzhou23
StarCraft 2
General
Could we add "Avoid Matchup" Feature for rankgame RotterdaM "Serral is the GOAT, and it's not close" The New Patch Killed Mech! Chinese SC2 server to reopen; live all-star event in Hangzhou Weekly Cups (Oct 13-19): Clem Goes for Four
Tourneys
Crank Gathers Season 2: SC II Pro Teams 2025 RSL Offline Finals Dates + Ticket Sales! Merivale 8 Open - LAN - Stellar Fest $5,000+ WardiTV 2025 Championship $3,500 WardiTV Korean Royale S4
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment
Brood War
General
BW General Discussion [ASL20] Ask the mapmakers — Drop your questions BSL Team A vs Koreans - Sat-Sun 16:00 CET [ASL20] Finals Preview: Arrival BSL Season 21
Tourneys
[ASL20] Grand Finals The Casual Games of the Week Thread BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION ASL final tickets help
Strategy
How to stay on top of macro? PvZ map balance Soma's 9 hatch build from ASL Game 2 Current Meta
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine US Politics Mega-thread YouTube Thread The Chess Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
MLB/Baseball 2023 2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Reality "theory" prov…
perfectspheres
LMAO (controversial!!)
Peanutsc
The Benefits Of Limited Comm…
TrAiDoS
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1121 users

The Big Programming Thread - Page 105

Forum Index > General Forum
Post a Reply
Prev 1 103 104 105 106 107 1032 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
Poland17399 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
Poland17399 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 1032 Next
Please log in or register to reply.
Live Events Refresh
BSL 21
01:00
Open Quali #2
ZZZero.O72
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 163
RuFF_SC2 139
Nina 101
Nathanias 100
NeuroSwarm 93
StarCraft: Brood War
Artosis 631
scan(afreeca) 73
ZZZero.O 72
Movie 44
Bale 38
Icarus 7
Dota 2
monkeys_forever510
XaKoH 313
LuMiX0
League of Legends
JimRising 760
Counter-Strike
m0e_tv355
PGG 157
Super Smash Bros
C9.Mang0634
hungrybox544
Other Games
summit1g11899
WinterStarcraft341
Skadoodle179
Maynarde122
Models3
Organizations
Other Games
gamesdonequick1135
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH124
• practicex 11
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo758
• Stunt273
Upcoming Events
Replay Cast
6h 2m
BASILISK vs Shopify Rebellion
Team Liquid vs Team Falcon
OSC
8h 2m
CrankTV Team League
9h 2m
Shopify Rebellion vs Team Liquid
BASILISK vs Team Falcon
Replay Cast
19h 2m
The PondCast
1d 5h
CrankTV Team League
1d 9h
Replay Cast
2 days
WardiTV Invitational
2 days
MaNa vs Gerald
Rogue vs GuMiho
ByuN vs Spirit
herO vs Solar
CrankTV Team League
2 days
Replay Cast
3 days
[ Show More ]
BSL Team A[vengers]
3 days
Dewalt vs Shine
UltrA vs ZeLoT
BSL 21
3 days
Sparkling Tuna Cup
4 days
BSL Team A[vengers]
4 days
Cross vs Motive
Sziky vs HiyA
BSL 21
4 days
Wardi Open
5 days
Monday Night Weeklies
5 days
Liquipedia Results

Completed

CSL 2025 AUTUMN (S18)
WardiTV TLMC #15
Eternal Conflict S1

Ongoing

BSL 21 Points
BSL 21 Team A
C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
CranK Gathers Season 2: SC II Pro Teams
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025

Upcoming

SC4ALL: Brood War
YSL S2
BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
META Madness #9
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
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.