It's not a secret anymore!
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


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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Sure. What do you have so far? Where are you stuck making progress?
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: 15302
    
    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
Sheriff

Joined: Oct 14, 2005
Posts: 19719
    
  10

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: 2543
    
  10

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
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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: 2543
    
  10

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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: 3d earth rotation
 
It's not a secret anymore!