Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Memblock to create Mesh Objects

Author
Message
MMT
6
Years of Service
User Offline
Joined: 12th Mar 2018
Location:
Posted: 9th May 2020 10:30
This does not seem to be overly documented or is there something?

So essentially, I want four vertices with texture coordinates, all the same normals.

(I am mostly a 3D NOOB, so don't be offended )
Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 9th May 2020 12:17
The documentation is a bit verbose, but it is all in there.

Heres an example that uses a 3 functions to lessen the complexity a bit
https://forum.thegamecreators.com/thread/224567

1) Create a memblock
2) Set the memblock & vertex information at the start as per the documentation
3) Add some vertices (and some indices if you use them)
4) create the object from your memblock.

You could of course just create a plane object then convert it to a memblock and you then get pretty much what you are after. Just be aware that this will give you an object with 2 front triangles and 2 rear ones as well. The vertices / normals and texture coords will already be set.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 9th May 2020 15:04
There's a lot of good info in this thread: https://forum.thegamecreators.com/thread/225808.
The user that created it has been permanently banned for reasons that we do not need to discuss. So, if anyone brings it up, I will be deleting those comments.
I don't really like linking to one of his threads but despite his need to be banned he did have some good coding skills.
MMT
6
Years of Service
User Offline
Joined: 12th Mar 2018
Location:
Posted: 9th May 2020 17:20
Great help so far!
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 11th May 2020 22:05
That code mesher shared is pretty cool but full of bugs and slow downs
But could be the base for a cool psx style mapper?

Login to post a reply

Server time is: 2024-11-22 04:14:18
Your offset time is: 2024-11-22 04:14:18