Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
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 / Xith3D Forums / Re: SpotLight on: 2005-05-23 01:14:02
Lately, I 've had no time to focus on this, but I'll be very grateful if you, Schabby, or anyone could check the code and tell me what I'm doing wrong.

http://dexor.webpal.info/jws/

there you can find the source and some necesary files to run the app.

thanks Smiley
2  Java Game APIs & Engines / Xith3D Forums / Re: SpotLight on: 2005-05-09 21:46:56
Thanks a lot Cheesy

Edit: Nope I can't get this to work

hmm...
the direction vector shouldn't have any negative components?

Is the SpotLight fully implemented on xith?

And what about this? :
1  
2  
Vector1.negate();
            Vector1.normalize();

I saw that on Xith3DSphereMotionLightingTest
'Removing' these lines causes to Directionalight the effect mentioned in the FAQ, and the SpotLight doesn't appears anymore

I'm confused  Tongue
3  Java Game APIs & Engines / Xith3D Forums / SpotLight on: 2005-05-09 03:14:30
Hi there  Tongue

By far, I have not understood how the location's Point3f and the direction's vector3f works.
I want some spotlight lighting a tennis court.

I've tested the following: (basically is an spotlight located at one corner of the court pointing to the court's center. The court center is located at (0,0,0). The corner is at (18,10,-39) )
1  
2  
3  
lampSpot1 = new SpotLight(new Color3f(1f,1f,1f),new Point3f(18,10,-39),
                                     new Point3f(1,0,0),new Vector3f(0,0,0),
                                     90.0f * (float) Math.PI / 180.0f, 1.0f);


But the light doesn't appear.
playing with the direction vector produces several effect,s sometimes the lights appear butn in some strange directions, etc.

So, I need some advice on how the spotlight works, maybe any tutorial or white paper i dunno  Tongue

Bwt, I searched many times here in the forum but I found nothing related to my stuff. Also, the Java3D tutorial doesn't give me anything useful Shocked

Tnahks in advance
4  Java Game APIs & Engines / Xith3D Forums / Re: Xith3d newbie...(textures related) on: 2005-04-18 23:37:46
yep, the court lines are not part of the texture.

So, if I want lines changing its width as the camera moves, I need to put them as a texture, rigth?
5  Java Game APIs & Engines / Xith3D Forums / Xith3d newbie...(textures related) on: 2005-04-18 04:21:52
Hi all, this is my very first post  Cheesy
I'm just a newbie, and I need some advice Grin

Well, I'm making a tennis game, by now, I only got the 'court':
a rectangle with a grass texture, and the court lines 'painted' over it.

The problem is that the court lines (actually, they're only a LineArray) doesn't change its width when the 'camera' gets closer or farer (using Transform3D.lookAt(...)) ...and that  is not very esthetic i think Tongue

So I don't know if i should make an image of the court lines and then put it over the grass texture, or maybe something else...
(by the way, I've read the tutorial about textures, I have no problem with that Tongue)

thanks in advance
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.

xsi3rr4x (50 views)
2014-04-15 18:08:23

BurntPizza (46 views)
2014-04-15 03:46:01

UprightPath (62 views)
2014-04-14 17:39:50

UprightPath (44 views)
2014-04-14 17:35:47

Porlus (61 views)
2014-04-14 15:48:38

tom_mai78101 (84 views)
2014-04-10 04:04:31

BurntPizza (142 views)
2014-04-08 23:06:04

tom_mai78101 (242 views)
2014-04-05 13:34:39

trollwarrior1 (201 views)
2014-04-04 12:06:45

CJLetsGame (208 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!