Render an OBJ with Rotation Params into a PNG

Hey Everyone,
I hope ya’ll are doing well.
This is my first post on this forum so please give me any recommendations or constructive criticism.
I do not like being spoon-fed, and I love a good challenge.
I hope I can eventually be a keystone of this community. :wink:

Back on topic.
So, I am working with a ray-casting engine from the website here.
http://www.brackeen.com/scared/
I liked it’s simplicity and efficiency, so I’ve decided to use it.
My problem is, since this is in fact a ray casting engine very similar to Wolfenstein 3D, anything that is an entity, is a flat png that follows your character’s look.
I love the Waveform OBJ format and have used it in the past with LWJGL, can someone help me understand what I would need to do to turn the pseudo code into working code.
Thanks in advance!
-Blue

public static BufferedImage(File objm, int rotx, int roty, int rotz){
verticies[] = OBJLoader.parse(objm) //don’t know if that’s even right (assuming I have a class that does that)
//insert math that I do not know, but should know here
return bimage;
}

Um are you asking how to screenshot a Wavefront OBJ model while it is still in its modeling program?

Like loading a OBJ file into Blender and clicking Render and then screenshotting that?

EDIT: Just saw that you posted an attempt at a method that does that. A method like that wouldn’t work because the object has to be rendered in 3D and then a snapshot of the rendered object has to be taken.

I also have looked at lots of brackeen’s code. The documentation for his game Scared is not great and not much of the actual rendering techniques are actually explained. Why don’t you check out brackeen’s book Developing Games in Java? It gives you a somewhat solid explanation as to what 3D rendering is and how to accomplish it and he has the source code available to download on his website.

EDIT2: You seem to be my age! How about you add me on skype and we can discuss such topics? PM me if you want to!

Basically yes. I want to make a method that will render an obj with it’s texture into a png at a specific rotation of the model.
Also, that books looks interesting.
The thing is, I am new to the Java game dev scene. I have done Java for years, but am now looking into LWJGL. I am wanting to make a horror game with decent graphics, but the ThinMatrix tutorials are not progressing as fast as I would like. (As in, I am fully caught up, and he is only at bump-mapping.) But I have to give it to the ThinMatrix for explaining it well. The reason I chose raycasting is because it looks like a fun challenge, that won’t make my head bleed too much.

EDIT: I checked out your profile. You look like the kind of guy who knows this stuff. Seeing as how you made that car simulator.

Haha very interesting. Do you have a skype account? I’d love to talk to you

Why do you look at a software renderer if you’re interested in hardware accelerated rendering with OpenGL? There are numerous OBJ loaders available, especially in the 3D Java engines, they are good sources of inspiration even though you don’t plan to use them.

What gouessej said, especially since with OpenGL, you can easily render anything to a texture by rendering to a FrameBufferObject.

I can give out my Skype.
Problem is I have school, and can’t talk until Friday.
I’m wanting to make a horror game in Java, preferably LWJGL.
I started learning it this summer, and stopped at lighting before school started.
Now I completely forgot how the theory of it works.
I want to make a simple engine with multiple lights, obj w/ multi texture loading, Paul’s code sound, skybox, and bump mapping.
I don’t know I’m hoping for this kind of look.

https://i.imgur.com/oYCrCmQ.png (I didn’t put the picture in because, it made the post hard to read)

I don’t need it to be UE4, but if I could get this that would be awesome.
I love Java, but I’d like to focus on the coding of the storyline rather than the theory.
I am open to any suggestions!
Thanks,
-Blue

I forgot to mention in the above.
I know 3 years of Java back-end. So, you don’t have to go easy on my brain. :wink:
The problem with me, is I kind of know LWJGL, and have barely touched swing.
I have coded several parts of my engine, the multiplayer, controller support, anti-cheat, and even microphone influenced random number generation.
I also have figured out the notify feature of this forum! :o
Anything helps!
Thanks,
-Blue