ANN: 3D library
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
ANN: 3D library
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.
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.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: ANN: 3D library
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.
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
Thank you for your suggestions, but did you test speed on the other 3D model in the 3D directory?
These are some models:
These are some models:
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: ANN: 3D library
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
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
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.
http://youtu.be/ZuGw40jTjBU
http://youtu.be/ghwPT1jS48A
I'll add the first 3D robot example in github today.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- VIP Livecode Opensource Backer
- Posts: 92
- Joined: Mon Jul 06, 2009 4:53 am
- Location: Bamboo River
Re: ANN: 3D library
That's amazing Max!!
-
- Posts: 634
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: ANN: 3D library
Wow, amazing that you did this all in LiveCode/RevTalk!
Really nice, Cheers!
Really nice, Cheers!
-
- Posts: 634
- Joined: Wed Apr 24, 2013 4:53 pm
- Contact:
Re: ANN: 3D library
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!
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
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.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
Probably 3D library can accept any file format.
What do you want to know?PaulDaMacMan wrote: A more verbose read me file would be nice.
Well, my pc is older than your... so if works on mine works everywhere...PaulDaMacMan wrote: Surprised at how nicely this runs on my old Core2Duo GMA X3100 laptop on MacOSX 10.6.8!
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: ANN: 3D library
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!
Here a cartoon subject from an OBJ file:
Enjoy!
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: ANN: 3D library
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
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.
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.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- VIP Livecode Opensource Backer
- Posts: 9853
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: ANN: 3D library
MaxV - you use REBOL? So cool! I've always admired Mr. Sassenrath and his wonderfully inventive toolkit.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: ANN: 3D library
Yes, I used Rebol for some years. Unfortunately Mr. Sassenrath left his precious programming language abandoned.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w