Main Menu
Menu

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.

Show posts Menu

Topics - rolz

#1
Support / a point inside polygon
February 28, 2006, 09:28:05 PM
I've got stuck with a math question.

How to determine Z coordinate for a point inside a polygon with given x and y coordinates ?

Assume we have SimpleVector p1, p2, p3 - vertices of the polygon.
then we have float x, float y - coordinates of point inside this polygon. How do we find Z coordinate that belongs to this polygon ?

Spent 30 minutes trying to figure this out and finally gave up. ;) .. any suggestions ?
#2
Support / Sorting problems with GLRenderer
February 14, 2006, 10:52:54 AM
Helge, i've noticed a bug with overlaping non-transparent objects:

There are two overlapping non-transparent objects with diffent sortOffset. When the camera moves, overlapping is not consistent, e.g. on one frame the object 1 is on top, and on another object 2 is on top.

The problem appears to be in 1.10_pre_xx , with GLRenderer only. When i switch back to 1.9 and AWTGLRenderer the problem goes away.
#3
Support / Applying multitexture to single poly in object
December 26, 2005, 05:01:16 PM
Helge,


We've got object3d.setTexture(TextureInfo) method that works just fine, but is it by any way possible to apply multitexture to a single poly ? like
PolygonManager.setPolygonTexture(polyId, textureInfo) ?
#4
News / Link to JPCT on LWJGL.org
December 19, 2005, 11:51:10 AM
I've noticed that JPCT wasnt mentioned in "engines using LWJGL" section on LWJGL site. I've contacted matzon and asked if he would agree to to add it there.

A small update:
- link to JPCT was added in LWJGL development resources section
- link to technopolies was added in LWJGL projects section.

Helge, it will be good idea to post information about paradroidz there.
#5
Bugs / NPE in world.renderScene()
June 19, 2005, 05:07:51 PM
An exception occurs when the world is modified in another thread


java.lang.NullPointerException
at com.threed.jpct.World.renderScene(World.java:788)
at techno.client.engine.TEngine.paintOnce(TEngine.java:181)
at techno.client.engine.TEngine.start(TEngine.java:142)
at techno.client.world3d.Client3D.run(Client3D.java:94)
at techno.client.world3d.Client3D.main(Client3D.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
Removing AWT listeners: ...Removing Handlers: ...don



decompiled code:


       int j = objectList.size();
       for(int k = byte0; k < j; k++) {
           Object3D object3d = objectList.elementAt(k);
#788     object3d.object3DRendered = false;
           if(!object3d.isVisible)
               continue;
           int i;
#6
Helge,

Do you have plans for adding JPCT bindings to existing physics / animation engines like ODE and Cal3D ?
#7
Bugs / AWTGlRenderer
May 03, 2005, 05:36:31 PM
Occurs when AWT canvas is used on complicated scenes


Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 16384
at com.threed.jpct.AWTBufferList.fill(Unknown Source)
at com.threed.jpct.VisList.extract(Unknown Source)
at com.threed.jpct.AWTDisplayList.add(Unknown Source)
at com.threed.jpct.AWTJPCTCanvas.add(Unknown Source)
at com.threed.jpct.AWTGLRenderer.drawVertexArray(Unknown Source)

at com.threed.jpct.World.draw(Unknown Source)
at com.threed.jpct.World.draw(Unknown Source)
at techno.client.engine.Engine.paintOnce(Engine.java:175)
at techno.client.engine.Engine.start(Engine.java:155)
at techno.editor.map.MapViewer.start(MapViewer.java:61)
at techno.editor.map.MapViewer.main(MapViewer.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

Process finished with exit code 0
#8
Support / jOGL support
April 09, 2005, 09:22:28 PM
Helge,

Is there a way to add jOGL bindings to jPCT  ?

It would be very nice to have hardware 3d that could draw its contents into a native peer (awt or swing panel). Using glass panes along with this should give more control over 2D UI elements which lwjgl binding lacks.
#9
Support / Undersampling
March 17, 2005, 03:19:42 PM
Helge,

Is there a way to set variable framebuffer sampling rate ?
It would be nice to have something that looks cleaner than
SAMPLINGMODE_OGUS but runs smoother than SAMPLINGMODE_NORMAL.
For most users  it might be an option to increase performance on slow CPUs.
#10
Projects / Technopolies
October 21, 2004, 04:03:43 PM
An upcoming effort to create XCom/Jagged Alliance/LSN like mmorpg.