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 - EgonOlsen

Pages: 1 [2] 3 4 ... 788
16
This thread contains some example code btw (for desktop jPCT, but the idea still applies): http://www.jpct.net/forum2/index.php/topic,2413.0.html

17
Support / Re: Making a model move by code(user input)
« on: November 07, 2017, 07:44:51 am »
I'm not sure what a joint is meant to be in this context. Joints of a skeleton?

18
Support / Re: 3D object from 2D drawing
« on: November 07, 2017, 07:44:04 am »
If you have the shape in 2d defined by the end points, you need some sort for triangulation algorithm to convert it into 2d triangles (i.e. in a plane). Once you have that, you can extend it in 3d pretty easily. There are several triangulation algos out there, just google for it. It also depends on your objects. It's getting more complex, if your objects can be convex as well (your example is concav).

19
You can use this for example: http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Interact2D.html#reproject2D3DWS(com.threed.jpct.Camera, com.threed.jpct.FrameBuffer, int, int, float)

I'm not sure if it does exactly what you want, because you are talking about z=0 in world space here!? However, this method takes z in camera space (which is actually natural, because that's the space into which your taps are going). Just remember that z=0 in camera space isn't a bright idea, so use 1 for 10 or whatever fits you instead.

20
Support / Re: variable shadow bias ?
« on: November 06, 2017, 10:50:01 am »
I'll add it.

Quote
i have a feeling that JPCT engine was designed and tested mostly for small scene, like indoor scene.
Not really. Most Android development that I did with it was this: https://play.google.com/store/apps/details?id=com.threed.jpct.games.rpg. And while not being Skyrim, it's still quite open and worldy.

21
Support / Re: variable shadow bias ?
« 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.

22
Support / Re: 3D object from 2D drawing
« 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.

23
Support / Re: Loader.loadOBJ Problem
« 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.

24
Support / Re: Fog Of War Transparency With Software
« 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.

25
Support / Re: Fog Of War Transparency With Software
« 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.

26
Support / Re: Fog Of War Transparency With Software
« on: October 26, 2017, 06:41:52 pm »
The latest video works. But it's almost impossible to tell anything based on it IMHO. All I see are black squares...could you make a similar video based on this texture: http://jpct.de/download/tmp/testtexture.png?

27
Support / Re: Fog Of War Transparency With Software
« on: October 25, 2017, 08:41:02 am »
The new video doesn't work either. I'm getting the same opps-page...!?

28
Support / Re: Fog Of War Transparency With Software
« on: October 24, 2017, 07:30:01 am »
I've no idea what's going on then. And I can't open the video link that you've sent me. All that YouTube does when I try to, is telling me: Oops!?

29
Support / Re: Fog Of War Transparency With Software
« on: October 22, 2017, 12:30:56 am »
Maybe an issue with the texture coordinates somehow? If you are using a proper texture (not just a single colored one), does that look right?

30
Support / Re: Fog Of War Transparency With Software
« on: October 20, 2017, 09:10:21 pm »
I don't think so. As long as it's transparent AND on top of the rest, it should work. What happens if you use a texture in another color? Does it show?

Pages: 1 [2] 3 4 ... 788