Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

3d earth rotation

 
lokesh jain
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am a newbie. I am trying to make a program to make 3d earth rotation on jsp/html page. Can you please help me with the code?

Thanks a million
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure. What do you have so far? Where are you stuck making progress?
 
lokesh jain
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not started it till now. As I said, I want to do it. Would you please some light, how can i approach for that.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to look into some Java OpenGL binding API's like JOGL or LWJGL. Then you'll need to look into how to create an Applet or how to deliver your app via Java Web Start.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lokesh, in your original post you mentioned "JSP and HTML" but you posted in the Swing (and other client-side GUIs) forum. So which is it? Perhaps you would like your post moved to a more suitable forum if your question isn't about Swing?
 
Jan Cumps
Bartender
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some Sun examples of 3d drawing and rotating:

http://java.sun.com/applets/jdk/1.4/demo/applets/MoleculeViewer/example1.html
http://java.sun.com/applets/jdk/1.4/demo/applets/MoleculeViewer/example2.html
http://java.sun.com/applets/jdk/1.4/demo/applets/MoleculeViewer/example3.html

I agree that it's not the earth, but it's 3d drawings turning around.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean something like this: http://www.ulfdittmer.com/sunsphere/

I didn't create it, I hasten to add, I merely host it because I couldn't find working copies elsewhere on the net.
 
Jan Cumps
Bartender
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Do you mean something like this: http://www.ulfdittmer.com/sunsphere/

I didn't create it, I hasten to add, I merely host it because I couldn't find working copies elsewhere on the net.
Waw. Nice.
 
lokesh jain
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,ulf the same stuff I want. Can you provide me with code?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code is at http://www.ulfdittmer.com/sunsphere/SunSphere-applet-source.zip. Note the licensing information:


* Copyright © 1996 Martin Minow. All Rights Reserved.
* World map copyright © 1992-97 Apple Computer Inc. All Rights Reserved.
* Used by permission.
*
* Permission to use, copy, modify, and redistribute this software and its
* documentation for personal, non-commercial use is hereby granted provided that
* this copyright notice and appropriate documentation appears in all copies. This
* software may not be distributed for fee or as part of commercial, "shareware,"
* and/or not-for-profit endevors including, but not limited to, CD-ROM collections,
* online databases, and subscription services without specific license.

 
lokesh jain
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ulf, the globe is pretty nice. however i want a globe only revolving, not showing me the day and night stuff. See the globe in this link : http://ccastel.free.fr/ also the code is bit bigger and includes lots of java files. Can't we have a single file for that?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "single file" - a single source file? Why does it matter how many source files there are? If there's lots of functionality, then there'll be lots of classes. That's the point of OO languages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic