This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ardera's profile picture

3Dyna Engine [3D Graphics Engine]

Started by ardera, 28 February 2013 - 08:11 AM
ardera #1
Posted 28 February 2013 - 09:11 AM
[indent=1]3Dyna Engine[/indent]
[indent=1]Version 0.011[/indent]
Hey Guys, I finished my render program after about 1 year work and bug fixes ^^
And now, it has about 100 bugs, and you can't turn, and its really slow, but it's the first
full lua Ascii render progam in the world (written in CC lua ^^)


Updated:
[indent=1]The compress function now works, so it's now possible to render 3D Worlds.[/indent]
[indent=1]I'm sorry, that this didn't work in Version 0.01, but its now fixed.[/indent]
[indent=1]Anyway, there is now a new bug and it's important that you know that,[/indent]
[indent=1]because it concerns the setBlock function: You're not able to set any Block[/indent]
[indent=1]by using the setBlock function in the command interface, you have to hardcode it[/indent]
[indent=1](see line 162 in the re program)[/indent]

To design a map you only need to download 2 files:
(BTW: You have to start the re program ;)/> )
[indent=1]Version 0.011:[/indent]
[indent=1]
Spoilerre Program:
pastebin get 6PZ2xWJq re
render API:
pastebin get FK8jQtJk render
[/indent]
[indent=1]
[/indent]

[indent=1]Older Versions:[/indent]
[indent=1]
Spoiler
[/indent]
[indent=1]Version 0.01:[/indent]
[indent=1]
Spoiler
[/indent]
[indent=1]re Program:
pastebin get KWYMLQpT re
render API:
pastebin get 1jtcMdV9 render
[/indent]
[indent=1][/indent]
[indent=1][/indent]

To get into the menu:
[indent=1]press 'm'[/indent]

What it does:
[indent=1]It converts 3D worlds in 2D pictures![/indent]
[indent=1]So now you can make 3D games and Desktop Backgrounds for OSes ^^[/indent]

What you can do:
[indent=1]You can go in the menu and change some blocks (press m wait that the menu opens and then type help)[/indent]
[indent=2](the x axis is the axis in front of you. So if you set the block 102 100 100 to A you will see some A's in front of you.)[/indent]
[indent=1]You can set the player position[/indent]
[indent=1]You can render 3D worlds[/indent]

Screenshots:

first render:

Spoiler

internal command interface:

Spoiler

my house from 5 m distance (x=100, y=100, z=100)

Spoiler

my house from 10 m distance (x=95, y=101, z=100)

Spoiler

my house from 20 m distance(x=85, y=101, z=100)

Spoiler

my house from 30 m distance (x=75, y=101, z=100)

Spoiler

my house from 0 m distance (x=105, y=101, z=100)

Spoiler



Credits:
[indent=1]me (coded all of this^^)[/indent]
[indent=1]my brother (helped me with some formulas)[/indent]
[indent=1]the cc forum (explained me that the math.sin/tan/cos functions are in a other format)[/indent]

License:
Spoiler[indent=1][/indent]

[indent=1]This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.[/indent]
[indent=1]
[/indent]

I think this can now be moved to Programs or Apis/Utilities.
How to support me: I could need some help with coding, fixing, debugging etc.
bjornir90 #2
Posted 28 February 2013 - 09:29 AM
Please show us some screens of what it can do !! ;)/>
oeed #3
Posted 28 February 2013 - 10:17 AM
Please excuse my ignorance, but I don't quite understand what this does…
Does it render ASCII characters?
In help it appears to have something to do with the Minecraft world/blocks…
Some explanation/example would be nice.
Wing #4
Posted 28 February 2013 - 10:22 AM
I don't understand what he means entirely… I think it's some way of writing programs to be executed with CC and have a GUI or something like that…

Good job anyway!
JustPingo #5
Posted 28 February 2013 - 11:04 AM
I thinks that change a picture to ASCII. Anyway, I congrats you for the 1 year work ! OMG
Dlcruz129 #6
Posted 28 February 2013 - 03:03 PM
You worked on this for a year?
ardera #7
Posted 28 February 2013 - 05:53 PM
It simply converts 3D world tables in 2D pictures
So now you can make 3D games!
oeed #8
Posted 28 February 2013 - 06:46 PM
It simply converts 3D world tables in 2D pictures
So now you can make 3D games!

Oh, ok, maybe screenshot/example would be nice?
ardera #9
Posted 28 February 2013 - 06:56 PM
sry Im on my way to school :(/> screenshots in 7 hours :(/>
remiX #10
Posted 01 March 2013 - 02:35 AM
What is this supposed to do?

All it does for me: [attachment=1038:wtf.PNG]
ardera #11
Posted 01 March 2013 - 03:14 AM
Sry ^^ I only read the log and there were some A's in the logfile and I was so happy that it works that I uploaded it before testing the converter that compresses the images from size 50x50 to 51x19 ^^
But I already fixed it and I'll upload a new version in maybe 10-30 min's

What it does:
[indent=1]http://en.wikipedia....ical_projection[/indent]
[indent=1]That means:[/indent]
[indent=2]you can now make 3D games[/indent]
[indent=2]you can now display your 3D worlds from the player perspective. Like in real games.[/indent]
remiX #12
Posted 01 March 2013 - 04:18 AM
I'm confused, it's still doing the same thing - used both codes you gave in the OP. api is called render etc.
:?

( it's been an hour, passed the time you said you would have uploaded it, have you changed it?:P/> )
ardera #13
Posted 01 March 2013 - 05:25 AM
I'm confused, it's still doing the same thing - used both codes you gave in the OP. api is called render etc.
:?

( it's been an hour, passed the time you said you would have uploaded it, have you changed it? :P/> )
Im really sorry… Havn't uploaded them yet :(/> found a bug that is really bad and don't know how to fix it, because I don't find the bug
But I can upload some screenshots :)/>
remiX #14
Posted 01 March 2013 - 05:29 AM
What's the error? Maybe I can help
ardera #15
Posted 01 March 2013 - 05:38 AM
There is no error, it simply deletes the whole world and overwrites every block that is in the table :(/>

Oh and I uploaded some screenshots ^^
oeed #16
Posted 01 March 2013 - 09:47 AM
There is no error, it simply deletes the whole world and overwrites every block that is in the table :(/>

Oh and I uploaded some screenshots ^^

Uhhh, your 'render' doesn't really show what this actually does….

EDIT: Is it a bit like this?
ardera #17
Posted 01 March 2013 - 10:24 AM
There is no error, it simply deletes the whole world and overwrites every block that is in the table :(/>

Oh and I uploaded some screenshots ^^

Uhhh, your 'render' doesn't really show what this actually does….

EDIT: Is it a bit like this?
Yes its like this, but I think with his Program you can only render Walls. But with my program its possible to render whole 3D worlds, and so you can render more than walls ^^

Oh and the screenshots only show the menue and the loading screen at first rendering, because the functions with that you can edit the 3D world seems to be bugged, and so I had to hard code that and so on. But now I finished that and I can show you an example of what it does :)/>

EDIT: Added some screenshots
EDIT2: Oh and added a name: 3Dyna Engine (Dyna=Dynamic because the pictures are rendered dynamically, and not (like in some 3D games that I found in the forum) presaved pictures that the coder made)
wilcomega #18
Posted 03 March 2013 - 10:26 AM
just a question. from just looking at it, it looks like its just scaling an image.
ardera #19
Posted 03 March 2013 - 12:01 PM
just a question. from just looking at it, it looks like its just scaling an image.
I'll upload some new pics where you see that you can edit the map, and go right/left, up/down.
immibis #20
Posted 05 March 2013 - 04:24 PM
Can you turn around?
ardera #21
Posted 06 March 2013 - 06:57 AM
Can you turn around?
Im sorry, but that hasn't been added yet. But I'm working on adding that…
ardera #22
Posted 25 March 2013 - 04:39 AM
Updated (V. 0.011):
[indent=1]*Fixed now the big bug that didn't allow that anything got rendered.[/indent]

I know its only got 1 bug fix, but I tried to fix the setBlock bug, but I didn't find the problem.
BTW: This can now be moved to Programs or Apis/Utilities.
TBotv63 #23
Posted 16 July 2013 - 09:26 AM
You still working on this?