Recent Posts

Pages: [1] 2 3 ... 10
1
Support / Re: raspberry pi, orange pi, etc
« Last post by EgonOlsen on December 04, 2022, 10:54:26 pm »
Yes, sure...the software renderer will work just as it is on a Pie.
2
Support / Re: raspberry pi, orange pi, etc
« Last post by MichaelJPCT on December 04, 2022, 10:02:40 pm »
what about the software renderer of jpct? although slow, it is useful in some cases.
3
Support / Re: raspberry pi, orange pi, etc
« Last post by AeroShark333 on December 04, 2022, 03:00:18 pm »
Afaik, you can even run Android on a Raspberry Pi which has proper OpenGLES support. In that case jPCT-AE could be used.
But then again, I would argue that you can make jPCT work on a Linux distro too (Raspbian or such). I would believe that there should be some sort of OpenGL support available as for how popular the Raspberry Pi is. It might not work as seamlessly as on Windows but I wouldn't know for sure until someone tried :D
4
Support / Re: raspberry pi, orange pi, etc
« Last post by EgonOlsen on December 04, 2022, 09:04:11 am »
No, not as it is. While you can run a JVM on these devices, I don't think (correct me, if I'm wrong please) that there is an OpenGL (ES) binding for Java available on these devices. Without that, it can't be ported.
5
Support / raspberry pi, orange pi, etc
« Last post by MichaelJPCT on December 04, 2022, 06:11:14 am »
does jpct work on these devices?
there devices are marketed as computers for students. if jpct works on them, more students would get to know jpct.  :)
6
Support / Re: How does JPCT-AE Vertex works on Object3D.addTriangle(...)?
« Last post by EgonOlsen on November 26, 2022, 09:31:27 pm »
Order matters here. jPCT culls away back faces (unless you disable this with setCullling(), but the lighting will be wrong in this case). What is a back face and what isn't is defined by the order of the vertices in a triangle. In this case, reverse the order of the vertices for the faces that aren't visible and they should show up.
7
Support / How does JPCT-AE Vertex works on Object3D.addTriangle(...)?
« Last post by Hellfire on November 25, 2022, 03:45:26 pm »
Hello friends. How does JPCT-AE Vertex works on Object3D.addTriangle(...)?
Code: [Select]
public static Object3D createCube(float scale) {
 Object3D o = new Object3D(12);
 float size = scale / 2;

// FRONT
 o.addTriangle(new SimpleVector(-size, size, size), new SimpleVector(-size, -size, size), new SimpleVector(size, size, size));
 o.addTriangle(new SimpleVector(size, size, size), new SimpleVector(size, -size, size), new SimpleVector(-size, -size, size));

// BACK
 o.addTriangle(new SimpleVector(-size, size, -size), new SimpleVector(-size, -size, -size), new SimpleVector(size, size, -size));
 o.addTriangle(new SimpleVector(size, size, -size), new SimpleVector(size, -size, -size), new SimpleVector(-size, -size, -size));

// LEFT
 o.addTriangle(new SimpleVector(-size, size, size), new SimpleVector(-size, -size, size), new SimpleVector(-size, size, -size));
 o.addTriangle(new SimpleVector(-size, size, -size), new SimpleVector(-size, -size, -size), new SimpleVector(-size, -size, size));
 
// RIGHT
 o.addTriangle(new SimpleVector(size, size, size), new SimpleVector(size, -size, size), new SimpleVector(size, size, -size));
 o.addTriangle(new SimpleVector(size, size, -size), new SimpleVector(size, -size, -size), new SimpleVector(size, -size, size));

// UPPER
 o.addTriangle(new SimpleVector(size, size, size), new SimpleVector(-size, size, size), new SimpleVector(size, size, -size));
 o.addTriangle(new SimpleVector(size, size, -size), new SimpleVector(-size, size, -size), new SimpleVector(-size, size, size));

// LOWER
 o.addTriangle(new SimpleVector(size, -size, size), new SimpleVector(-size, -size, size), new SimpleVector(size, -size, -size));
 o.addTriangle(new SimpleVector(size, -size, -size), new SimpleVector(-size, -size, -size), new SimpleVector(-size, -size, size));
 return o;
}
Result:
8
Support / Re: How to display 2D image to 3D screen
« Last post by AeroShark333 on November 22, 2022, 03:05:15 pm »
Thank you, its working, i didn't have the perfect texture though  ::) ::)
Glad to hear!

For a joystick, I'd recommend a PNG file as texture (where the outside is transparent), otherwise a JPG texture (where the outside is black).
Make sure to use the constructors in Texture that have 'useAlpha' (which you should then set to true): https://www.jpct.net/jpct-ae/doc/com/threed/jpct/Texture.html#Texture-Bitmap-boolean-
9
Support / Re: How to display 2D image to 3D screen
« Last post by Hellfire on November 22, 2022, 12:39:50 pm »
Hello welcome!

Hello friends. How to display 2D Image to the camera?
I'am trying to make a Joystick
I'd recommend the blitting functions of the FrameBuffer:
https://www.jpct.net/jpct-ae/doc/com/threed/jpct/FrameBuffer.html#blit-com.threed.jpct.Texture-float-float-float-float-float-float-float-float-int-boolean-

I hope this helps :)
Thank you, its working, i didn't have the perfect texture though  ::) ::)
10
Support / Re: How to display 2D image to 3D screen
« Last post by AeroShark333 on November 21, 2022, 10:27:21 pm »
Hello welcome!

Hello friends. How to display 2D Image to the camera?
I'am trying to make a Joystick
I'd recommend the blitting functions of the FrameBuffer:
https://www.jpct.net/jpct-ae/doc/com/threed/jpct/FrameBuffer.html#blit-com.threed.jpct.Texture-float-float-float-float-float-float-float-float-int-boolean-

I hope this helps :)
Pages: [1] 2 3 ... 10