Recent Posts

Pages: 1 ... 5 6 [7] 8 9 10
61
Support / Re: 3D object from 2D drawing
« Last post by AeroShark333 on November 05, 2017, 01:28:51 pm »
Maybe this can help you experiment a little:
http://www.jpct.net/wiki/index.php?title=Create_a_cube
62
Support / Re: 3D object from 2D drawing
« Last post by dimvolk on November 05, 2017, 01:10:13 pm »
Thanks for answer.
What i need is to create scene/model based on points from 2D touch points.
For example is in 2D , and in 3D get this
63
Support / Re: variable shadow bias ?
« Last post by EgonOlsen on November 02, 2017, 09:43:32 am »
Sorry for the late reply. I can add a setter for the bias, if that's still needed.
64
Support / Re: 3D object from 2D drawing
« Last post by EgonOlsen on November 02, 2017, 09:37:09 am »
No idea. jPCT-AE doesn't prevent you from doing this, but it doesn't offer support for it either. You somehow have to triangulate the 2d drawing and then create an Object3D from it.
65
Support / Re: Loader.loadOBJ Problem
« Last post by EgonOlsen on October 31, 2017, 11:17:32 pm »
mtlFile might be not null, but does the actual file exist? For desktop jPCT, it's best to set the Logger to ON_ERROR_THROW_EXCEPTION, so that it exists early. jPCT-AE already does this, the desktop version just doesn't for compatibility reasons. Maybe that reveals the actual problem.
66
Support / Loader.loadOBJ Problem
« Last post by AGP on October 31, 2017, 08:33:08 pm »
Code: [Select]
System.out.println("\n\n\nWarcraft.loadObject: "+fileName +" Is the mtl null? "+(mtlFile==null));
System.out.println("Is loadOBJ(fileName, mtlFile) null? "+(Loader.loadOBJ(fileName, mtlFile, .5f)==null));

Produces:
Quote
Warcraft.loadObject: buildings\castle_construction0.obj Is the mtl null? false
Exception in thread "main" java.lang.NullPointerException
        at java.util.Hashtable.put(Unknown Source)
        at com.threed.jpct.Loader.loadOBJ(Loader.java:819)
        at com.threed.jpct.Loader.loadOBJ(Loader.java:508)
        at Warcraft.loadObject(Warcraft.java:250)
        at Worker.moveTowardsDest(Character.java:393)
        at Warcraft.loop(Warcraft.java:320)
        at Warcraft.<init>(Warcraft.java:163)
        at Warcraft.main(Warcraft.java:1058)

I've opened the file in Blender and it loads just fine.
67
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on October 30, 2017, 01:24:41 am »
No, it should be fine. You might even want to increase it, if you run into some accuracy problems.
68
Support / 3D object from 2D drawing
« Last post by dimvolk on October 28, 2017, 12:44:07 am »
Hi
How create 3D object/model from 2D drawing on button click (or vice versa)?
For example: in app i draw 2D cube (round or other) and on click it should be converted/transformed to 3D model.
Any help or link, example?
Thanks
69
Support / Re: Fog Of War Transparency With Software
« Last post by AGP on October 27, 2017, 07:13:43 pm »
Is this too big a scale for a Warcraft level, in your opinion?

Quote
************
World bounds:
X: -1133.6974, 318.40582
Y: -279.86633, 0.25386608
Z: -925.57733, 135.38232
************
70
Support / Re: Fog Of War Transparency With Software
« Last post by EgonOlsen on October 27, 2017, 11:21:42 am »
It's cheap as long as you don't call it every frame, which you shouldn't have to. To come closer to an orthographic view, you have to move the camera far(er) away and decrease the fov to compensate for that. But especially with the software renderer, you might run into accuracy issues if you are moving away too far.
Pages: 1 ... 5 6 [7] 8 9 10