Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Background Geometry  (Read 1615 times)
0 Members and 1 Guest are viewing this topic.
Offline Breakfast

Senior Devvie

for great justice!

« Posted 2002-10-21 19:15:45 »

Does anyone know anything about using Background Geometry?

How does it work? If I want to draw a background starfield, for example, do I create a bunch of points and just transform them to where I want them to appear and then add their transformgroup to the background node and they stay at their current position as part of the background group? If so, how do they not get in the way of the live scene? How do I know they have been transformed far enough?

Also, if I wanted to do a starfield with some bigger star images in addition to simple points, how can I do that in such a way as the graphics stay visible without using OrientedShape3D behaviour, which can't be added to a background geometry?
Offline gcollin

Senior Newbie

Java games rock!

« Reply #1 - Posted 2002-12-04 10:00:59 »

Looks like you want to do the same as me.

BackgroundGeometry only allows for Sphere, other geometry are not displayed at all.

For the background starfield problem, here is what I want to do:

- Design a huge bitmap with stars in it.
- Display this bitmap in the preRender method of the Canvas3D. This way the image is always shown behind any 3d objects.
- Move the bitmap accordingly to the point of view. This should allow for a quite good starfield.

The only things that annoys me are : I need a huge bitmap stored in memory and if the point of view rotate along the Z axis I need to rotate the huge bitmap as well.
I don't know if java can handle this well.


Gerard Wink
Pages: [1]
  ignore  |  Print  

EgonOlsen (44 views)
2018-06-10 19:43:48

EgonOlsen (24 views)
2018-06-10 19:43:44

EgonOlsen (46 views)
2018-06-10 19:43:20

DesertCoockie (201 views)
2018-05-13 18:23:11

nelsongames (126 views)
2018-04-24 18:15:36

nelsongames (125 views)
2018-04-24 18:14:32

ivj94 (866 views)
2018-03-24 14:47:39

ivj94 (127 views)
2018-03-24 14:46:31

ivj94 (770 views)
2018-03-24 14:43:53

Solater (142 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!