File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes 3d earth rotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "3d earth rotation" Watch "3d earth rotation" New topic
Author

3d earth rotation

lokesh jain
Ranch Hand

Joined: Feb 21, 2009
Posts: 58
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
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
Sure. What do you have so far? Where are you stuck making progress?


Ping & DNS - my free Android networking tools app
lokesh jain
Ranch Hand

Joined: Feb 21, 2009
Posts: 58
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Dec 20, 2006
Posts: 2491
    
    8

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.


OCUP UML fundamental and ITIL foundation
youtube channel
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
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

Joined: Dec 20, 2006
Posts: 2491
    
    8

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

Joined: Feb 21, 2009
Posts: 58
Yes,ulf the same stuff I want. Can you provide me with code?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
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

Joined: Feb 21, 2009
Posts: 58
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
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
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.
 
jQuery in Action, 2nd edition
 
subject: 3d earth rotation
 
Similar Threads
Picking With Java 3D
Physics and Airtravel....
Should i use java 3d API
Should i use java 3d API
What should be the best API for converintg real time images into 3D objects