Page 1 of 1
ANN: 3D library
Posted: Wed Jul 16, 2014 4:52 pm
by MaxV
Hi,
I'm glad to annuounce that the first version of the 3D library is ready. It odesn't have any dependences, so it can run on any device. It's just pure Livecode.
You can see the project here:
https://github.com/angerangel/LCR3D
You can find there a working demo, 3D models to load and working binaries inside the
builds folder. Binaries are quicker and without some glitches that the IDE insert.
You can fork the project or propose improvements.

Re: ANN: 3D library
Posted: Fri Jul 18, 2014 8:58 pm
by netdzynr
This is great -- nice work.
As a test, I replaced the mouseUp command in your behavior with scrollbarDrag, and added lock messages to speed up the rendering. With these additions, rendering occurs near instantaneously here on a MacMini OS X 10.8.5.
on scrollbarDrag --< NEW
lock screen --< ADD
lock messages --< ADD
#model
put the curmodel of this stack into world[1]["model"]
...
set the layer of group "r3d" to 1
unlock messages --< ADD
unlock screen --< ADD
end scrollbarDrag --< NEW
It seems there may be a small rendering issue with Y rotation (saw a couple of instances where the polygons ballooned out), but this is a very impressive stack.
Re: ANN: 3D library
Posted: Sat Jul 19, 2014 9:33 pm
by MaxV
Re: ANN: 3D library
Posted: Sat Jul 19, 2014 10:50 pm
by netdzynr
I tried the goblet model just now, and while the rendering isn't immediate, it's substantially faster with the screen and messages locked.
Basically, my hope was that rendering could update while the scrollbars are dragged in real time (using scrollbarDrag), not after the mouse is released (mouseUp). The script modifications enable rendering to occur more quickly, if not immediately in all cases.
As I said, your stack is very impressive

Re: ANN: 3D library
Posted: Wed Jul 30, 2014 3:35 pm
by MaxV
Here there are a couple of video:
http://youtu.be/ZuGw40jTjBU
http://youtu.be/ghwPT1jS48A
I'll add the first 3D robot example in github today.
Re: ANN: 3D library
Posted: Thu Jul 31, 2014 2:49 pm
by Peter Wood
That's amazing Max!!
Re: ANN: 3D library
Posted: Tue Aug 19, 2014 2:18 pm
by PaulDaMacMan
Wow, amazing that you did this all in LiveCode/RevTalk!
Really nice, Cheers!
Re: ANN: 3D library
Posted: Tue Aug 19, 2014 2:44 pm
by PaulDaMacMan
I hadn't messed around with 3D modeling for awhile but I never heard of .ply or .off formats.
I did find a link to some useful stuff for converting .obj to .ply as well as some info and additional models at this URL:
http://people.sc.fsu.edu/~jburkardt/data/ply/ply.html
A more verbose read me file would be nice.
Surprised at how nicely this runs on my old Core2Duo GMA X3100 laptop on MacOSX 10.6.8!
Thanks for releasing this as GPL!
Re: ANN: 3D library
Posted: Wed Aug 20, 2014 1:20 pm
by MaxV
PaulDaMacMan wrote:I hadn't messed around with 3D modeling for awhile but I never heard of .ply or .off formats.
I did find a link to some useful stuff for converting .obj to .ply as well as some info and additional models at this URL:
http://people.sc.fsu.edu/~jburkardt/data/ply/ply.html
Well, the file format is not a real problem. 3D library needs only to know solid point coordinates and for each face which point make a face. Every face can be an irregular polygon.
Probably 3D library can accept any file format.
PaulDaMacMan wrote:
A more verbose read me file would be nice.
What do you want to know?
PaulDaMacMan wrote:
Surprised at how nicely this runs on my old Core2Duo GMA X3100 laptop on MacOSX 10.6.8!
Well, my pc is older than your... so if works on mine works everywhere...

Re: ANN: 3D library
Posted: Thu Aug 21, 2014 9:00 am
by MaxV
I just added
OBJ and
PLY file support. Now you can use any file format you like.
Here a cartoon subject from an OBJ file:

Enjoy!

Re: ANN: 3D library
Posted: Fri Oct 17, 2014 8:18 am
by istech
This work is excellent MaxV. I will be playing with this over the weekend. What would be your next step for this MaxV? Support Rigging?
Re: ANN: 3D library
Posted: Fri Oct 17, 2014 1:28 pm
by MaxV
Well, I was waiting some advanced image manipulation system for Livecode. A the present you can't easily stretch or deform image, so I can't add a bitmap to a surface. So you at the present
you can't do this:
but if you need some cool effect like a bitmap, just playing with colours,
you can create this:
My only way to skip the problem for bitmap is the raycasting technique, but it's very low quality (like the old wolfenstein 3D), this is the result:
However GitHub permit people to ask for feature. So if you need something you can use this forum or
GitHub.
Re: ANN: 3D library
Posted: Fri Oct 17, 2014 3:10 pm
by FourthWorld
MaxV - you use REBOL? So cool! I've always admired Mr. Sassenrath and his wonderfully inventive toolkit.
Re: ANN: 3D library
Posted: Fri Oct 17, 2014 5:41 pm
by MaxV
Yes, I used Rebol for some years. Unfortunately Mr. Sassenrath left his precious programming language abandoned.
