Jump to content




3D Rendering API v0.5.1 UPDATED! (Way better erformance + new functionalities)

api lua

64 replies to this topic

#21 Restioson

  • Members
  • 20 posts
  • LocationSecret meeting of the South African Internet Users club

Posted 14 June 2016 - 01:36 PM

This looks really amazing! Nice work! +1

#22 Xelostar

  • Members
  • 134 posts
  • LocationOn Earth

Posted 14 June 2016 - 02:47 PM

View PostRestioson, on 14 June 2016 - 01:36 PM, said:

This looks really amazing! Nice work! +1
Thank you! :D

#23 unnamedcoder

  • Members
  • 23 posts

Posted 14 June 2016 - 03:00 PM

View PostXelostar, on 14 June 2016 - 12:36 PM, said:

That is kind of how my 3D printer modeling program works... :P
I advise you to wait until I release my API. Then you can use it to draw what people are creating.
Well, it still is hard to create a program for creating models...
Maybe you can make it so that the user can click somewhere on the screen (2d) and then give a height value to that point. Later the user can connect these points to draw lines. I wish you a lot of succes! :D

Yeah I was thinking about that, I could make it next month, since I have to do exams starting monday and it is getting hectic for me, I need to spend my time on revision etc. I know exactly how I'm going to do it, I'll just need some time, also could you specify the dimensions of the model?

#24 Xelostar

  • Members
  • 134 posts
  • LocationOn Earth

Posted 14 June 2016 - 03:33 PM

View Postunnamedcoder, on 14 June 2016 - 03:00 PM, said:

View PostXelostar, on 14 June 2016 - 12:36 PM, said:

That is kind of how my 3D printer modeling program works... :P
I advise you to wait until I release my API. Then you can use it to draw what people are creating.
Well, it still is hard to create a program for creating models...
Maybe you can make it so that the user can click somewhere on the screen (2d) and then give a height value to that point. Later the user can connect these points to draw lines. I wish you a lot of succes! :D

Yeah I was thinking about that, I could make it next month, since I have to do exams starting monday and it is getting hectic for me, I need to spend my time on revision etc. I know exactly how I'm going to do it, I'll just need some time, also could you specify the dimensions of the model?

Awesome! Take your time! :)
If you mean that x and z are length and width and that y is the height, jsut like in minecraft, then here is your answer.
If you mean how big it shoud be:
from (-0.5, -0.5, -0.5) to (0.5, 0.5, 0.5) would be great! :)

Edited by Xelostar, 14 June 2016 - 03:34 PM.


#25 unnamedcoder

  • Members
  • 23 posts

Posted 16 June 2016 - 03:12 PM

View PostXelostar, on 14 June 2016 - 03:33 PM, said:

View Postunnamedcoder, on 14 June 2016 - 03:00 PM, said:

View PostXelostar, on 14 June 2016 - 12:36 PM, said:

That is kind of how my 3D printer modeling program works... :P
I advise you to wait until I release my API. Then you can use it to draw what people are creating.
Well, it still is hard to create a program for creating models...
Maybe you can make it so that the user can click somewhere on the screen (2d) and then give a height value to that point. Later the user can connect these points to draw lines. I wish you a lot of succes! :D

Yeah I was thinking about that, I could make it next month, since I have to do exams starting monday and it is getting hectic for me, I need to spend my time on revision etc. I know exactly how I'm going to do it, I'll just need some time, also could you specify the dimensions of the model?

Awesome! Take your time! :)
If you mean that x and z are length and width and that y is the height, jsut like in minecraft, then here is your answer.
If you mean how big it shoud be:
from (-0.5, -0.5, -0.5) to (0.5, 0.5, 0.5) would be great! :)
Alright, I've made a quick mock-up for the program, I was thinking of something like this:
Posted Image
Sorry for the messy handwriting :P

#26 Xelostar

  • Members
  • 134 posts
  • LocationOn Earth

Posted 16 June 2016 - 07:32 PM

View Postunnamedcoder, on 16 June 2016 - 03:12 PM, said:

View PostXelostar, on 14 June 2016 - 03:33 PM, said:

View Postunnamedcoder, on 14 June 2016 - 03:00 PM, said:

View PostXelostar, on 14 June 2016 - 12:36 PM, said:

That is kind of how my 3D printer modeling program works... :P
I advise you to wait until I release my API. Then you can use it to draw what people are creating.
Well, it still is hard to create a program for creating models...
Maybe you can make it so that the user can click somewhere on the screen (2d) and then give a height value to that point. Later the user can connect these points to draw lines. I wish you a lot of succes! :D

Yeah I was thinking about that, I could make it next month, since I have to do exams starting monday and it is getting hectic for me, I need to spend my time on revision etc. I know exactly how I'm going to do it, I'll just need some time, also could you specify the dimensions of the model?

Awesome! Take your time! :)
If you mean that x and z are length and width and that y is the height, jsut like in minecraft, then here is your answer.
If you mean how big it shoud be:
from (-0.5, -0.5, -0.5) to (0.5, 0.5, 0.5) would be great! :)
Alright, I've made a quick mock-up for the program, I was thinking of something like this:
Posted Image
Sorry for the messy handwriting :P

Looks promising! I want the model to be a 1 by 1 by 1. For other sizes, I will probably add a rotation and a size value. :-)
Can you make the "drawing space" a 10 by 10? That would be useful. I will probably upload by API tomorrow. :D

#27 unnamedcoder

  • Members
  • 23 posts

Posted 16 June 2016 - 08:14 PM

View PostXelostar, on 16 June 2016 - 07:32 PM, said:

Looks promising! I want the model to be a 1 by 1 by 1. For other sizes, I will probably add a rotation and a size value. :-)
Can you make the "drawing space" a 10 by 10? That would be useful. I will probably upload by API tomorrow. :D

Sure, 10 by 10, I won't be able to make this until the 7th of July, so unless u wanna make it, go ahead

#28 jv110

  • Members
  • 108 posts
  • LocationIn front of my PC

Posted 18 June 2016 - 12:27 AM

Can I maybe help? I can add filled faces and textures. I don't wanna help the competitor, but I don't think this is really the same thing.

#29 Xelostar

  • Members
  • 134 posts
  • LocationOn Earth

Posted 18 June 2016 - 06:46 AM

View Postunnamedcoder, on 16 June 2016 - 08:14 PM, said:

View PostXelostar, on 16 June 2016 - 07:32 PM, said:

Looks promising! I want the model to be a 1 by 1 by 1. For other sizes, I will probably add a rotation and a size value. :-)
Can you make the "drawing space" a 10 by 10? That would be useful. I will probably upload by API tomorrow. :D

Sure, 10 by 10, I won't be able to make this until the 7th of July, so unless u wanna make it, go ahead

I have got all the time! :-)

View Postjv110, on 18 June 2016 - 12:27 AM, said:

Can I maybe help? I can add filled faces and textures. I don't wanna help the competitor, but I don't think this is really the same thing.

Yes, you can help. It is indeed not the same. I have already looked into it and I know how I would add the abillity for filled faces. Textures would be really hard though. Also it would be very slow if many textures are rendered. If you can pull that off and you have the time, I think it's OK. Do it if you really want to help. If you create a filled faces API, could you create a function like:

function drawFilledFace(face) --or something like that
    ...
end
Where face is something like this:
face = {
  color = colors.red,
  coordinates = {
    {x = 10, y = 8},
    {x = 10, y = 10},
    {x = 20, y = 18},
    {x = 15, y = 8},
  },
}
If it doesn't work out, I can do it. :-)

#30 Incinirate

  • Members
  • 216 posts
  • LocationDanktown, Memeland

Posted 18 June 2016 - 06:49 AM

View PostXelostar, on 18 June 2016 - 06:46 AM, said:

--snip--

Not to intrude or anything, but a good way of storing faces (in my experience) is to just reference vertices, it cuts down on memory and redundancy.
This looks really nice though! Can't wait to see what it turns into! :D

#31 Xelostar

  • Members
  • 134 posts
  • LocationOn Earth

Posted 18 June 2016 - 07:08 AM

View PostIncinirate, on 18 June 2016 - 06:49 AM, said:

View PostXelostar, on 18 June 2016 - 06:46 AM, said:

--snip--

Not to intrude or anything, but a good way of storing faces (in my experience) is to just reference vertices, it cuts down on memory and redundancy.
This looks really nice though! Can't wait to see what it turns into! :D

I have thought of an algorithm. I don't really know what you mean with reference verticles. Can you send me a link? I also just noticed that there is a GPU API. It seems to be work-in-progres, though. Anyway, thank you for your compliment! :)

#32 Incinirate

  • Members
  • 216 posts
  • LocationDanktown, Memeland

Posted 18 June 2016 - 07:12 AM

View PostXelostar, on 18 June 2016 - 07:08 AM, said:

View PostIncinirate, on 18 June 2016 - 06:49 AM, said:

View PostXelostar, on 18 June 2016 - 06:46 AM, said:

--snip--

Not to intrude or anything, but a good way of storing faces (in my experience) is to just reference vertices, it cuts down on memory and redundancy.
This looks really nice though! Can't wait to see what it turns into! :D

I have thought of an algorithm. I don't really know what you mean with reference verticles. Can you send me a link? I also just noticed that there is a GPU API. It seems to be work-in-progres, though. Anyway, thank you for your compliment! :)

Sorry, should have been a little more explicit, what I meant is, that since you already have defined vertices for drawing lines to create objects, you can reference 3/4 of them to create a triange/quad respectively. For example:
vert1 = {0,0,0}
vert2 = {1,0,0}
vert3 = {0,1,0}
face = {vert1,vert2,vert3}
You then have all the information to draw a triangle in face, you can easily change it to work with quadrilaterals as well.

#33 unnamedcoder

  • Members
  • 23 posts

Posted 18 June 2016 - 11:43 AM

View PostIncinirate, on 18 June 2016 - 07:12 AM, said:

Sorry, should have been a little more explicit, what I meant is, that since you already have defined vertices for drawing lines to create objects, you can reference 3/4 of them to create a triange/quad respectively. For example:
vert1 = {0,0,0}
vert2 = {1,0,0}
vert3 = {0,1,0}
face = {vert1,vert2,vert3}
You then have all the information to draw a triangle in face, you can easily change it to work with quadrilaterals as well.
Even better:
face = { {0,0,0}, {1,0,0}, {0,1,0} }

Edited by unnamedcoder, 18 June 2016 - 11:44 AM.


#34 Xelostar

  • Members
  • 134 posts
  • LocationOn Earth

Posted 19 June 2016 - 06:06 AM

I might actually prefer Incinirate's way of doing it, because it would be more clear if you define the coordinates of the points and later the faces. Do it like you want. You have the choice. :)

#35 Xelostar

  • Members
  • 134 posts
  • LocationOn Earth

Posted 19 May 2017 - 11:47 AM

View PostBomb Bloke, on 08 June 2016 - 01:29 AM, said:

If you switch the Youtube link from "https" to "http", it'll actually embed into your post.

Doesn't seem to work in my latest post. :/

#36 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 19 May 2017 - 02:08 PM

Currently I see:

[url="https://www.youtube.com/watch?v=-zEXvgoZhLs"]https://www.youtube.com/watch?v=Sc_2kFtxfdQ[/url]
[media]http://www.youtube.com/watch?v=Sc_2kFtxfdQ[/media]

You probably want:

http://www.youtube.com/watch?v=-zEXvgoZhLs
http://www.youtube.com/watch?v=Sc_2kFtxfdQ

Note that the rich-text editor is not your friend. Use the light switch up the top left of the posting dialogue box in order to toggle it.

#37 Tag365

  • Members
  • 109 posts

Posted 26 May 2017 - 12:35 AM

Why don't you disable the rich text editor by default???

#38 Xelostar

  • Members
  • 134 posts
  • LocationOn Earth

Posted 03 June 2017 - 10:00 PM

View PostBomb Bloke, on 19 May 2017 - 02:08 PM, said:

Currently I see:

[url="https://www.youtube.com/watch?v=-zEXvgoZhLs"]https://www.youtube.com/watch?v=Sc_2kFtxfdQ[/url]
[media]http://www.youtube.com/watch?v=Sc_2kFtxfdQ[/media]

You probably want:

http://www.youtube.com/watch?v=-zEXvgoZhLs
http://www.youtube.com/watch?v=Sc_2kFtxfdQ

Note that the rich-text editor is not your friend. Use the light switch up the top left of the posting dialogue box in order to toggle it.

It's working now. I'm certain I said that before, but I cant seem to find the post. :/
Thanks for your help! :D

View PostTag365, on 26 May 2017 - 12:35 AM, said:

Why don't you disable the rich text editor by default???

Because I didn't know why it's better to turn it off. :)

Edited by Xelostar, 03 June 2017 - 10:00 PM.


#39 Floyd

  • Members
  • 7 posts
  • LocationPoland

Posted 01 September 2017 - 06:50 PM

I would really love to see how it would look with shadows

#40 Xelostar

  • Members
  • 134 posts
  • LocationOn Earth

Posted 01 September 2017 - 07:21 PM

Hm. Wouldn't shadows be pretty hard to implement? I may experiment with it though. Like using the characters that are filling the character space with some sort of gradiant effect for filling the sky. Maybe have edges be a little darker. By the way, here's a GIF. I've been working hard lately:
https://i.imgflip.com/1v3vwb.gif





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users