Author Topic: [Lua] Make3D  (Read 40429 times)

0 Members and 2 Guests are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #15 on: April 27, 2011, 09:16:21 pm »
Yeah it needs to be user-friendly to a certain minimum so people use it. I can't help much, though, since I never used 3D softwares, but I think a bunch of people here are used to Blender, so it might be good to make it user-friendly to that group of user.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #16 on: April 28, 2011, 02:56:31 am »
Woah! This is looking awesome! I once tried Nelson Sousa's 3D program for the nspire, but this looks much better. Nice job!

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #17 on: April 28, 2011, 08:11:33 pm »
So, I finally get it (the idea went :p), and I've a fully compatible interface with nspire-player and calc using my button class.
Useless to say that I didn't edit my Button class, I had to ! Thus I made an update of my shared Button class (same link)
http://levak.free.fr/ftp/nspire/Make3D/Buttons.lua


http://education.ti.com/html/nspireplayer/3.0.1/application/index.html?nspirefile=http://levak.free.fr/ftp/nspire/Make3D/Make3D.tns

Of course, we can directly select an item in the list by clic on it with the mouse (nspire-player).
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #18 on: April 30, 2011, 06:41:26 am »
I "recursified" the model, so now I can design sub menus, sub menus of sub menus etc ...


The trick is that each button has its own function when activated. Each button can have a child (sub menu).
- If I use up and down keys I switch between the items.
- When I use left key, I push the submenu screen which takes the event control (kindof Screen Manager).
- When I use right key, I pull the current screen.
- When I use Enter/click/accessKey, if it is a single button, it launches the button function and pull all the screens depending on a depth counter. If not, it push the submenu as if I pressed left key.

On thing is I can't manage to pull all the screens when the mousedown event is called but no buttons is pressed, just because this event is called instantaneously when I press the space button of the GUI I made.
« Last Edit: April 30, 2011, 06:48:04 am by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #19 on: May 04, 2011, 06:22:28 pm »
Added the Duplicate and Delete handle. This also means that I included an object list which contains the entire scene. Futhermore, I added a select tool with TAB and SHIFT TAB to point an object, and ENTER to add it to the selection group.
I also made the export function to save all selected object in the previous Make3D object format (will be performed a little bit later)

I plan to code Grab, Scale and Rotate functions, a Popup class to emulate the incompatible Request and Text functions, and all the Add functions (only the menu is here, nothing behind).
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #20 on: May 21, 2011, 03:40:04 am »
Woah that looks even greater including the menu and stuff! Also I like the multiple objects support in that last screenshot.

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #21 on: May 30, 2011, 06:51:28 pm »
This is a pretty sweet program! Is it possible to use the touchpad to control the mouse or rotate the figure?

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #22 on: June 02, 2011, 12:37:11 pm »
Holy Anti-Aliasing, Batman!

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #23 on: June 02, 2011, 12:40:22 pm »
This is a pretty sweet program! Is it possible to use the touchpad to control the mouse or rotate the figure?
We are in Lua (I think you didn't realize), thus the touchpad is handled as a mouse by default. And for now, I haven't implemented the object rotation feature yet (planed).


Holy Anti-Aliasing, Batman!
* Levak wanna understand
« Last Edit: June 02, 2011, 12:44:31 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline BrownyTCat

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 420
  • Rating: +37/-8
    • View Profile
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #24 on: June 02, 2011, 06:29:57 pm »
Holy Anti-Aliasing, Batman!
* Levak wanna understand
Essentially, "smooth edges".

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #25 on: June 02, 2011, 06:31:00 pm »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #26 on: June 02, 2011, 06:31:32 pm »
i think Browny is saying you did a great job adding antialiasing(smoot edges) into this
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #27 on: June 02, 2011, 06:34:25 pm »
i think Browny is saying you did a great job adding antialiasing(smoot edges) into this
But there is no way to make an anti-aliasing filter in Lua (or being mad) >_<.
« Last Edit: June 02, 2011, 06:35:42 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Ashbad

  • Guest
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #28 on: June 02, 2011, 06:36:59 pm »
Basically, anti-aliasing is a graphical term, in which you color smooth out the edges of contrasting colors by putting intermediary colors between them.  Example of anti-aliasing compared to non-aliased lines:



Oh, I see you already know what it is :) in that case, a decent way to anti-alias can be done by simply scanning around a plane and every time a group of pixels with a pixel between them are highly different in color, just take the average of the two and place that in the pixel between them.  It's a lame but fast way to implement anti-aliasing with decent effects.
« Last Edit: June 02, 2011, 06:45:28 pm by Ashbad »

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: [TI-Nspire] Make3D - TI-Basic to Lua
« Reply #29 on: June 02, 2011, 06:42:02 pm »
Basically, anti-aliasing is a graphical term, in which you color smooth out the edges of contrasting colors by putting intermediary colors between them.  Example of anti-aliasing compared to non-aliased lines:

Yes, I know that (I use Blender a lot, made also a RayTracer), but I don't understand why BrownyTCat proposed me to make an anti-aliasing in Lua ?!
It is quite impossible since this routine has to be included in the gc:drawRect one !
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua