Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java 3D / Re: Multiple objects in Java3D on: 2005-09-08 13:43:49
Would it be viable for me, then, to frequently add and detach large numbers of objects in a game situation, say, rapid fire projectiles that need to be moved along their trajectory? I was wondering what would be the established way of doing this...

I really don't know about the inner workings of Java3D, but detaching does sound like it could be expensive, especially if Java is attempting to optimise the render using the tree...  but then again, wouldn't hiding the objects out of sight by drastically changing their position, force a recomputation of bounds and etc as well?
but in line with the object hiding idea, is there is a cheap way to toggle a visibility for a branch?

Nonetheless, I'll try out both in code (hiding and detaching) and post the results in case anyone's interested...

Thanks so much for all the kind responses and suggestions! Smiley
really appreciate all that effort ^^
2  Java Game APIs & Engines / Java 3D / Re: Multiple objects in Java3D on: 2005-09-07 02:09:25
Thanks for the advice! I shall use that right away. Smiley
Just one other question though... if I clone a subtree per entity, is it apropriate for me to detach them from the universe in order to remove an entity, or is this an expensive operation?
3  Java Game APIs & Engines / Java 3D / Multiple objects in Java3D on: 2005-09-06 14:27:35
Hi!

I'm rather new to Java3D, and I was wondering what the apropriate way to include multiple objects in a scene is.

Right now, I'm loading Shape3Ds for each of my entities and attaching them to a SimpleUniverse directly by means of BranchGroups (no hierachy). The entities are all represented by the same mesh, but each one loads a copy of the same mesh data, which isn't exactly a great thing. When I need them out of the scene, I detach their BranchGroup linkages.

While reading through the forum, I realise these practices are definitely not right.
I was wondering if i could store the geometry just once, then reference the mesh data each time I draw a copy of the mesh on screen?

thanks in advance for the help! Smiley
4  Java Game APIs & Engines / Java 3D / world coords to screen coords on: 2004-03-23 07:11:36
hi!

i'm pretty new to java 3d and i'm trying to figure out how to calculate the on-screen (2d coordinates) position of a 3d point... is there any way i can do this?

thanks very much! Smiley
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (28 views)
2014-11-22 12:13:56

xFryIx (70 views)
2014-11-13 12:34:49

digdugdiggy (49 views)
2014-11-12 21:11:50

digdugdiggy (43 views)
2014-11-12 21:10:15

digdugdiggy (37 views)
2014-11-12 21:09:33

kovacsa (61 views)
2014-11-07 19:57:14

TehJavaDev (65 views)
2014-11-03 22:04:50

BurntPizza (63 views)
2014-11-03 18:54:52

moogie (79 views)
2014-11-03 06:22:04

CopyableCougar4 (78 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!