We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › space creation
Page Index Toggle Pages: 1
space creation (Read 313 times)
space creation
Apr 11th, 2010, 9:20am
 
Hello everyone!

I'd like to create a textured space so we could look everywhere in the 3d world and still see the texture.

I started with a sphere using the good shape3d library from Quark (http://www.lagers.org.uk/s3d4p/index.html).

Code:

import shapes3d.utils.*;
import shapes3d.*;
import peasy.*;
import processing.opengl.*;

Ellipsoid world;
PeasyCam pCamera;

void setup(){
 size(640, 640, OPENGL);
 noStroke();
 
 pCamera = new PeasyCam(this, 150);
 pCamera.lookAt(0,0,0,150);

 // Create the space
 world = new Ellipsoid(this, 20 ,30);
 world.setTexture("stars01.jpg");
 world.setRadius(300);
}

void draw(){
 background(40);
 
 world.draw();
}


It looks good but I heard you can do a similiar effect with a box... I've searched but did not find anything about it.

Anyone got a clue on that?

Thanks!
Page Index Toggle Pages: 1