Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
18 May, 2013, 17:05:04 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 ... 3 4 [5] 6 7 8   Go Down
  Print  
Author Topic: [Lua] Make3D -  (Read 7130 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Chockosta
LV6 Super Member (Next: 500)
******
Offline Offline

Gender: Male
Last Login: Today at 15:36:14
Date Registered: 03 June, 2011, 20:14:17
Location: France
Posts: 440


Total Post Ratings: +159

View Profile
« Reply #60 on: 02 August, 2011, 21:17:37 »
+1

Congrats !
This program becomes really awesome.

PS : I haven't tested that new version, but in the previous one, if you use any tool (grab, scale or rot) and type two double quotes (""), the prog returns an error.
« Last Edit: 02 August, 2011, 21:18:05 by Chockosta » Logged

Chockosta (Loic Pujet) - Sorry for my poor English...
Look at my projects :
in C code : Periodic table, Space invaders, Fall, Snake, Minesweeper, nCraft (WIP)
in Lua : Snake, Space invaders, Bobby Carrot, Minesweeper, Mazes 3D, nSpaint, FreeCell, Tiny3D-Viewer, CubeField, Gravity Guy
Levak
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 16:43:06
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 832


Topic starter
Total Post Ratings: +148

View Profile WWW
« Reply #61 on: 02 August, 2011, 22:25:44 »
0

PS : I haven't tested that new version, but in the previous one, if you use any tool (grab, scale or rot) and type two double quotes (""), the prog returns an error.

Oh, good find ... And I can't explain this ... I can block the quotes, since it is useless in a math expression, but it seams that math.eval() return a mathematical value to "" =D
Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: Today at 16:19:34
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1193


Total Post Ratings: +185

View Profile WWW
« Reply #62 on: 03 August, 2011, 01:09:41 »
0

One More thing i have to tell them Tongue
Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
Levak
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 16:43:06
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 832


Topic starter
Total Post Ratings: +148

View Profile WWW
« Reply #63 on: 03 August, 2011, 01:23:43 »
0

You can also let on.save return the highscore as a list. This will then be the parameter of on.restore next time the script gets opened Smiley
Bullet-proof :p

Dude, I love you T_T

Now, we don't loose the screen configuration when we exit from the document \o/  \^o^/  (o_  /o\
Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Levak
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 16:43:06
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 832


Topic starter
Total Post Ratings: +148

View Profile WWW
« Reply #64 on: 03 August, 2011, 03:15:42 »
0

Ok, today, acording to the previous post, I worked on the user's comfort.
 - 3D axes
 - Angular mode displayed : RAD or DEG mode
 - vignetting support (platform:gc() is definitely not gc)
 - save and restore supprot (GUI configuration is saved)



« Last Edit: 03 August, 2011, 03:16:08 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
adriweb
Editor
LV9 Veteran (Next: 1337)
*
Offline Offline

Gender: Male
Last Login: Today at 16:19:34
Date Registered: 13 April, 2011, 18:42:59
Location: South of France
Posts: 1193


Total Post Ratings: +185

View Profile WWW
« Reply #65 on: 03 August, 2011, 05:12:09 »
0

Great work !

platform:gc() is definitely not gc

in what way ... ?
« Last Edit: 03 August, 2011, 05:13:52 by adriweb » Logged


TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation
Levak
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 16:43:06
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 832


Topic starter
Total Post Ratings: +148

View Profile WWW
« Reply #66 on: 03 August, 2011, 11:18:55 »
+1

Great work !

platform:gc() is definitely not gc

in what way ... ?

In the way that platform:gc() is a constructor of a gc item.
The gc item passed to on.paint() has already been initialized with gc:begin() (this is a part of the bug of adding gc:begin() in on.paint() ) and is automaticly closed with gc:finish().

That way, if you use platform:gc() you have to initialize it first with gc:begin()

Here is a pseudo code of the core :


1
2
3
4
5
6
7
if platform.window.isInvalidate() then
  local gc = platform.window:gc()
  gc:begin()
  on.paint(gc)
  gc:finish()
end

And here comes another problem, if we use platform:gc() to draw things, it will give you the illusion that it is the same, but actually no. When you do a Ctrl+Up the vignettes are not drawn and the part you wish to draw is in background ! This is a little bug of gc, because you didn't put a gc:finish() in the function that uses platform:gc()
« Last Edit: 03 August, 2011, 11:22:14 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 15:02:18
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1733


Total Post Ratings: +180

View Profile WWW
« Reply #67 on: 03 August, 2011, 11:59:12 »
0

Hmm, very interesting!
Thanks for pointing it out Smiley
Logged

Spyro543
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 16:59:56
Date Registered: 15 April, 2011, 01:42:09
Location: Ohio
Posts: 990


Total Post Ratings: +59

View Profile WWW
« Reply #68 on: 04 August, 2011, 18:12:27 »
0

I downloaded a .zip from your site, and it has 4 TNS files in it:
Make3D_exemple.tns
Make3D_v9.3a.tns
mk3d_lib_gui.tns
mk3d_lib.tns
Which one(s) should I send to my calc?
Logged

Levak
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 16:43:06
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 832


Topic starter
Total Post Ratings: +148

View Profile WWW
« Reply #69 on: 04 August, 2011, 19:20:05 »
0

I downloaded a .zip from your site, and it has 4 TNS files in it:
Make3D_exemple.tns
Make3D_v9.3a.tns
mk3d_lib_gui.tns
mk3d_lib.tns
Which one(s) should I send to my calc?

None of them because it is not the zip file that you should download since it is the TI-BASIC version I used to update.

This one is the one :
http://levak.free.fr/ftp/nspire/Make3D/Make3D.tns
« Last Edit: 04 August, 2011, 19:20:20 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Eiyeron
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 07 January, 2013, 20:29:04
Date Registered: 09 August, 2011, 16:51:22
Location: Err 404.
Posts: 552


Total Post Ratings: +19

View Profile WWW
« Reply #70 on: 09 August, 2011, 16:56:35 »
0

Salut! J'ai vu que tu as fait un moteur, c'est cela?
Ton système est-il utilisable en C? Je prévois un petit moteur 3D pour g35+/75/85/etc... en C, maiis je manque cruellement d'infos.
Tu pourrais m'aider? Merci d'avance;

PS: Je comprends très bien le Lua.

Hello! I saw you've done a 3D motor. Is it right?
Is your system usable on C? I want to make a 3D motor for Fx-9860Sd and co., but I miss many infos.
Can you help me. Thanks.
PS: I understand well Lua.

Post reply: I dont know why i posted only in french, maybe beacause you're french too. Undecided
« Last Edit: 09 August, 2011, 18:28:49 by Eiyeron » Logged




Hayleia
Programming Absol
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Last Login: Today at 09:26:23
Date Registered: 01 June, 2011, 20:12:47
Location: ud-ud ?
Posts: 2043


Total Post Ratings: +254

View Profile
« Reply #71 on: 09 August, 2011, 17:02:12 »
0

Spoiler for not useful anymore:
Salut! J'ai vu que tu as fait un moteur, c'est cela?
Ton système est-il utilisable en C? Je prévois un petit moteur 3D pour g35+/75/85/etc... en C, maiis je manque cruellement d'infos.
Tu pourrais m'aider? Merci d'avance;

PS: Je comprends très bien le Lua.
_______________________________
Translation Grin
Hi! I saw you made an engine, right ?
Is your system usable in C ? I foresee a little 3D engine for g35+/75/85/etc... in C, but I don't have enough informations.
Could you help me ? Thanks by advance;

PS: I understand Lua a lot
_______________________________
PS2: Not everyone understand every language a lot, so French is welcome in the French section but here, English is better Wink
PS3: I am French too so sorry if the translation is not good.
XBOX360: Also, welcome in the forums Grin, you can introduce yourself here.
« Last Edit: 09 August, 2011, 18:38:33 by Hayleia » Logged





Spoiler for what I am according to...:
me: useless
Pokemon Test: an Absol
turiqwalrus: an eggplant
p2: A HUMAN BEING !
Blackpilar and p2: iplantonlyplantwantplanttoplantknowplantifplantyouplantareplantaplantboyplantorplantaplantgirlplant
click here to know where you got your last +1s
Eiyeron
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 07 January, 2013, 20:29:04
Date Registered: 09 August, 2011, 16:51:22
Location: Err 404.
Posts: 552


Total Post Ratings: +19

View Profile WWW
« Reply #72 on: 09 August, 2011, 18:22:39 »
0

Okay, i misunderstood, excuse-me. I'll modify.
« Last Edit: 09 August, 2011, 18:23:50 by Eiyeron » Logged




Levak
LV8 Addict (Next: 1000)
********
Online Online

Gender: Male
Last Login: Today at 16:43:06
Date Registered: 04 April, 2010, 23:42:49
Location: France
Posts: 832


Topic starter
Total Post Ratings: +148

View Profile WWW
« Reply #73 on: 09 August, 2011, 18:36:38 »
0

Salut! J'ai vu que tu as fait un moteur, c'est cela?
Ton système est-il utilisable en C? Je prévois un petit moteur 3D pour g35+/75/85/etc... en C, maiis je manque cruellement d'infos.
Tu pourrais m'aider? Merci d'avance;

PS: Je comprends très bien le Lua.

Hi,
I followed a C programming tutorial for the basic knowledge (maths and so ..) 3 years ago but I can't find it via Google. It seems it has disappeared ...
Anyway, the basic formulas are in Engine.lua. Other files are related to the GUI and Lua management.

But you'll have to make a real effort to use this method in C, since I completely changed my mind during its integration : 1D list for all points (instead of a n*3)
« Last Edit: 09 August, 2011, 18:40:21 by Levak » Logged

Human always wants to survive and that's why he will fall one day.
My website - TI-Planet - iNspired-Lua
Eiyeron
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 07 January, 2013, 20:29:04
Date Registered: 09 August, 2011, 16:51:22
Location: Err 404.
Posts: 552


Total Post Ratings: +19

View Profile WWW
« Reply #74 on: 09 August, 2011, 18:44:03 »
0

ProjectPoint(obj, obj[i+1], obj[i+2], zoffset)
I see, it's just {x,y,z}... Just what i thought first. i will study it. Thanks!
Is anything i must know to understand it?
Logged




Pages: 1 ... 3 4 [5] 6 7 8   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.312 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.