Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bart

Pages: [1]
1
Projects / Runescape
« on: November 10, 2004, 02:16:19 pm »
Runescape uses some specific optimalizations. Runescape doesn't use a z-buffer and the screen width is 2^n.

Good luck anyway.

2
Support / preliminary quesions about jPCT and swing components
« on: August 22, 2004, 11:02:24 am »
The jPCT API  download (http://www.jpct.net/download.htm) includes serval examples and a api documentation.

You can use swing and jPCT. You could, for example draw the 3D world on one panel and the swing components on other panels.

3
Support / Switching renderer in an applet context
« on: May 11, 2004, 06:28:55 pm »
I have searched information about using native code in applets some time ago but i didn't find much information about it. The FAQ of the LWJGL site tells that it isn't possible to use LWJGL from an applet.

Quote
Q: Is it possible to use LWJGL from an Applet?
A: Unfortunately, no. However you can start a LWJGL application from a webpage using Java WebStart. For more information click here

4
Support / Octree question
« on: October 25, 2003, 06:03:07 pm »
It is fast enough without octree (40fps). Thanks for your help.

5
Support / Octree question
« on: October 25, 2003, 01:12:27 pm »
I have a function that adds cubes to a world. I make one cube, I clone it, and I translate it. Then, I add the cubes to the world. But now i can't make an octree. I tried to use mergeObject but the translations aren't copied. Do you have an idea to make the world faster? (Sorry for my bad english  :oops: )

6
Projects / java 3d first person shooter
« on: October 21, 2003, 05:58:44 pm »
JPCT doesn't use the Java3D renderer. Do you want examples using JPCT or examples using Java3D?

7
Support / OpenGl and applet
« on: October 13, 2003, 06:46:22 pm »
Thanks for your help

8
Support / OpenGl and applet
« on: October 11, 2003, 01:21:25 pm »
Hi,

Do I need a signed applet if I want to use OpenGl in an applet?

9
Support / Object3D.addChild();
« on: October 04, 2003, 04:26:48 pm »
I've changed the code and everything works fine now :D . Thanks for your help.

10
Support / Object3D.addChild();
« on: October 04, 2003, 11:09:30 am »
Thanks for your help. mergeObjects is the method i need (i want to add an octree). The following code throws this exception:

Exception occurred during event dispatching:
java.lang.StackOverflowError
   at com/threed/jpct/OcTree.createChildren
   at com/threed/jpct/OcTree.createChildren
   at com/threed/jpct/OcTree.createChildren
   at com/threed/jpct/OcTree.createChildren
   at com/threed/jpct/OcTree.createChildren
   at com/threed/jpct/OcTree.createChildren
   at com/threed/jpct/OcTree.createChildren
   at com/threed/jpct/OcTree.createChildren
   at com/threed/jpct/OcTree.createChildren
   at com/threed/jpct/OcTree.createChildren

Code: [Select]
public void loadLevel(String level)
{
int y = 0;
int z = 0;
boolean onPlatform = false;
levelObj = new Object3D(0);
try{
URL url = new URL(getCodeBase(),level);
InputStream inStream = url.openStream();
BufferedReader dataStream =new BufferedReader(new InputStreamReader(inStream));
String inLine = null;
while((inLine = dataStream.readLine()) != null)
{
if(!inLine.equals(";"))
{
int x = 0;
while(x < inLine.length())
{
if(inLine.charAt(x) == '#')
{
//This command adds a blue block
Object3D Box1 = block.cloneObject();
if(!onPlatform)
Box1.translate(x*4,y*4,z*4);
else
Box1.translate(x*4,(y*4)-0.5f,z*4);
levelObj = Object3D.mergeObjects(levelObj,Box1); //add the block to the level
}
else
if(inLine.charAt(x) == 'R')
{
//This command moves the red sphere
sphere1.translate(x+5,y-1.5f,z-2); //move the sphere
camera.setPosition(x+5,y-1.5f,z-10); //move the camera
}
x++;
}
z++;
}
else
{
//go to the next platform or to the 2nd layer of the current platform
if(onPlatform)
onPlatform = false;
else
onPlatform = true;
z = 0;
if(!onPlatform)
y--;
}
}
}
catch(Exception e){System.out.println("Exception while loading the level: " + e);}
levelObj.createTriangleStrips(2);
OcTree tree = new OcTree(levelObj,12,OcTree.MODE_OPTIMIZED);
levelObj.setOcTree(tree);
theWorld.addObject(levelObj);
theWorld.buildAllObjects();
}


I don't know what is wrong.

11
Support / Object3D.addChild();
« on: October 03, 2003, 10:01:39 pm »
Hello,

I have some code similar to this:

Code: [Select]
levelObj = Object3D.createDummyObj();
levelObj.addChild(Box1);
theWorld.addObject(levelObj);


This doesn't seem to work.

But if i add Box1 to the world. Everything works fine. Do you know what the problem is?

Pages: [1]