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 / 3D mesh purely from code?

Author
Message
Nieb
9
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 4th Jun 2019 12:55
I've done a lot of stuff with memblocks, to do mesh batching and mesh modifying.
However, from what I can see, there doesn't appear to be a way to create 3D mesh/UV data purely from code. Am I perhaps over seeing something, does anyone know of a way to do so?
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 4th Jun 2019 13:15
@nieb if you check the Minecraft thread that shows a minecraft world being made with memblocks. it is also possible of making any arbituary shape
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
Xaby
FPSC Reloaded TGC Backer
16
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Nieb
9
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 4th Jun 2019 15:38
Thanks for the info and links. I think I see a way to proceed...
Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 4th Jun 2019 15:57 Edited at: 4th Jun 2019 15:58
Heres a really quick demo on how to do it easily using some helper functions.



Its basically:
1) Create a memblock
2) Set Vertex and index values in it
3) Create an object mesh from the memblock

With the demo above...you can add an image to your media folder to put on the mesh too.
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 6th Jun 2019 04:27
Nice Bengismo... you need a raise, bud.

Login to post a reply

Server time is: 2024-03-28 17:18:37
Your offset time is: 2024-03-28 17:18:37