Page 1 of 1

TMD model viewer example

Posted: August 9th, 2014, 1:52 pm
by LameGuy64
Yet another impressive but very readable 3D graphics example from me 8-)... It uses libgs functions to draw TMD models at high speed complete with light source calculation (the light source is displayed as a light bulb).

Image
Image

Here's a tutorial on how to make your own TMD models for your projects:
http://www.psxdev.net/forum/viewtopic.p ... =658#p5026

Re: TMD model viewer example

Posted: August 9th, 2014, 2:29 pm
by tlrmcknz
Me likey.

Re: TMD model viewer example

Posted: August 9th, 2014, 5:17 pm
by Shadow
Very impressive. I'll give it a go and see what I can do with it ;)

Re: TMD model viewer example

Posted: August 12th, 2014, 1:28 am
by Shendo
Awesome, as usual :)

Re: TMD model viewer example

Posted: August 15th, 2014, 7:26 am
by HatMusic
Holy cow! This is amazing!
I imagine this took a very long time, too.
And 60fps as well - on a ps1!
Very nice.
(I really like the smooth camera aswell)

Re: TMD model viewer example

Posted: August 16th, 2014, 12:16 am
by LameGuy64
I'm kinda surprised that you didn't notice that this example actually runs in hi-res 640x480 mode as well :lol:.

But anyway, I'm glad you like it! Actually, this didn't took me a lot of time to make as I spent like 3-4 days on this I believe.

Re: TMD model viewer example

Posted: August 16th, 2014, 1:54 am
by Shadow
I noticed it ran at 640x480, and actually, I was shocked. It ran very smooth (then again, there is hardly any load on the GPU). Try adding more objects and see how many it can handle before the FPS begin to drop ;)

Re: TMD model viewer example

Posted: August 17th, 2014, 4:35 am
by HatMusic
You're right - I can't believe I didn't notice, but then again I did only test it on an emulator
This has amazing potential and I must say I would like to see how much of this the ps1 could handle :D

Re: TMD model viewer example

Posted: September 24th, 2014, 1:21 am
by LameGuy64
Toon-shaded ponies anyone?
ImageImage
Even though the PlayStation lacked a Z-buffer which is essential for proper outline rendering, I was able to pull this off through some Ordering Table trickery... I'll release the source code of this once I'm done cleaning it up which won't take so long. Same goes for that TMD tutorial that I somehow forgot to make.

Re: TMD model viewer example

Posted: September 24th, 2014, 2:04 am
by Shadow
Nice! It reminds me of Parappa the Rappa :)

Re: TMD model viewer example

Posted: September 29th, 2014, 9:48 pm
by LameGuy64
Added an experimental pseudo toon-shaded model example.

Re: TMD model viewer example

Posted: July 5th, 2016, 6:34 pm
by gwald
LameGuy64 wrote:Yet another impressive but very readable 3D graphics example from me 8-)... It uses libgs functions to draw TMD models at high speed complete with light source calculation (the light source is displayed as a light bulb).[/url]
Nice viewer..
I don't think libgs is optimised to draw "at high speed" tho.

Re: TMD model viewer example

Posted: November 13th, 2017, 11:16 am
by RetroProgramming
i have a question:
how i can convert the TMD file to C file?
like MARILYN.C, PLATAFORM.C and BULB.C
please I would greatly appreciate it.

Re: TMD model viewer example

Posted: November 13th, 2017, 11:26 am
by LameGuy64
Simply use either bin2h or raw2src to convert binary files (such as TMD) to C source and header files.

You can find both of those programs in the download section of this website:
http://www.psxdev.net/downloads.html

Re: TMD model viewer example

Posted: August 17th, 2018, 11:39 pm
by NITROYUASH
LameGuy64, thank you for TmdTest and QLP file format.

I slightly reworked TMDtest, connect QLP archive (with custom TIM+TMD) and that's what i got:
► Show Spoiler

Re: TMD model viewer example

Posted: August 18th, 2018, 1:51 pm
by Shadow
NITROYUASH wrote: August 17th, 2018, 11:39 pm I slightly reworked TMDtest, connect QLP archive (with custom TIM+TMD) and that's what i got...
Whoa! That is very impressive :)

It would be awesome if you could add the MIME rigging so that he can be animated to move as well as talk ;)

Re: TMD model viewer example

Posted: August 18th, 2018, 6:56 pm
by NITROYUASH
I'll try it, but later. Now i'm learning how to work with 3D :)

Re: TMD model viewer example

Posted: August 19th, 2018, 10:21 am
by LameGuy64
That actually looks pretty neat! Nice to see that you're picking up on it pretty fast and even learned how to use my QLP data files for easier management of model data.