• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 01:13
CET 07:13
KST 15:13
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
[BSL21] Ro.16 Group Stage (C->B->A->D)1Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win2RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge2[TLMC] Fall/Winter 2025 Ladder Map Rotation14
StarCraft 2
General
When will we find out if there are more tournament Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win SC: Evo Complete - Ranked Ladder OPEN ALPHA Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge RSL Season 3: RO16 results & RO8 bracket
Tourneys
Tenacious Turtle Tussle RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest
Strategy
Ride the Waves in Surf City: Why Surfing Lessons H
Custom Maps
Map Editor closed ?
External Content
Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death
Brood War
General
Which season is the best in ASL? FlaSh on: Biggest Problem With SnOw's Playstyle soO on: FanTaSy's Potential Return to StarCraft Data analysis on 70 million replays 2v2 maps which are SC2 style with teams together?
Tourneys
[BSL21] RO16 Tie Breaker - Group B - Sun 21:00 CET [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET [Megathread] Daily Proleagues [BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET
Strategy
Game Theory for Starcraft How to stay on top of macro? Current Meta PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Nintendo Switch Thread Path of Exile Clair Obscur - Expedition 33
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
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2246 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
Poland17469 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
Poland17469 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
PiGosaur Cup
01:00
#59
SteadfastSC138
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 138
SortOf 80
StarCraft: Brood War
Larva 1101
Sharp 126
Snow 107
Noble 33
Icarus 8
Soulkey 1
BeSt 0
Dota 2
monkeys_forever542
League of Legends
JimRising 675
Counter-Strike
C9.Mang0289
Other Games
summit1g8130
WinterStarcraft395
ViBE151
Trikslyr22
Organizations
Other Games
gamesdonequick746
Dota 2
PGL Dota 2 - Main Stream307
StarCraft: Brood War
UltimateBattle 118
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• Azhi_Dahaki29
• RayReign 11
• ZZZeroYoutube
• STPLYoutube
• BSLYoutube
Dota 2
• lizZardDota238
League of Legends
• Rush1444
• Lourlo1190
• Stunt346
• HappyZerGling122
Other Games
• Scarra1802
Upcoming Events
Replay Cast
2h 47m
Wardi Open
5h 47m
OSC
6h 47m
Tenacious Turtle Tussle
17h 47m
The PondCast
1d 3h
Replay Cast
1d 16h
OSC
2 days
LAN Event
2 days
Replay Cast
2 days
Replay Cast
3 days
[ Show More ]
WardiTV Korean Royale
3 days
Sparkling Tuna Cup
4 days
WardiTV Korean Royale
4 days
Replay Cast
4 days
Wardi Open
5 days
Monday Night Weeklies
5 days
Replay Cast
5 days
Wardi Open
6 days
Liquipedia Results

Completed

SOOP Univ League 2025
RSL Revival: Season 3
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
META Madness #9
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
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.