Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DeleD scripting plugin
Goto page Previous  1, 2, 3
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Plugins
View previous topic :: View next topic  
Author Message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Fri May 15, 2009 1:05 pm    Post subject: Reply with quote

Wow.. This is really nice. Smile I'm going to check it out.

I just realized that the errors DeleD was throwing at me could be related to the DecimalSeperator. Did you set that to "." at the beginning of the "PluginExecute" routine?
Back to top
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Fri May 15, 2009 1:46 pm    Post subject: Reply with quote

chronozphere wrote:
Wow.. This is really nice. Smile I'm going to check it out.

I just realized that the errors DeleD was throwing at me could be related to the DecimalSeperator. Did you set that to "." at the beginning of the "PluginExecute" routine?


Thanks for the kind words Smile

I didn't set the decimal separator to "."...do you think that could be an issue?

cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Fri May 15, 2009 3:41 pm    Post subject: Reply with quote

Hmm.. It appears that the archive has been damaged. Can you upload it again?

Quote:

I didn't set the decimal separator to "."...do you think that could be an issue?


Yeah.. I think this might solve my issues. Please add the line, and I'll test. Smile
Back to top
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Fri May 15, 2009 9:58 pm    Post subject: Reply with quote

chronozphere wrote:
Hmm.. It appears that the archive has been damaged. Can you upload it again?

Quote:

I didn't set the decimal separator to "."...do you think that could be an issue?


Yeah.. I think this might solve my issues. Please add the line, and I'll test. Smile


Done, and done Smile

BTW, the zip file works for me with 7zip and the windows XP built in compressed folders accessor...I don't have WinZIP installed.

7zip is brilliant...handles all sorts of archive types, has better compression than WinZIP (for 7z files), and is free! Smile

cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Fri May 15, 2009 10:32 pm    Post subject: Reply with quote

Great... both the icosahedron and the scale sample seem to work now. Smile

And SynEdit works great. Very Happy

One thing i noticed: DeleD is sometimes not immediately updated after clicking the execute button. When i click a second time, i see my scene scaling 4 times it's original size. It might be me being foolish (I Need some sleep Razz ). Will investigate tomorrow. Smile
Back to top
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Fri May 15, 2009 11:35 pm    Post subject: Reply with quote

chronozphere wrote:
Great... both the icosahedron and the scale sample seem to work now. Smile

And SynEdit works great. Very Happy

One thing i noticed: DeleD is sometimes not immediately updated after clicking the execute button. When i click a second time, i see my scene scaling 4 times it's original size. It might be me being foolish (I Need some sleep Razz ). Will investigate tomorrow. Smile


You aren't imagining things <G>

Sometimes DeleD refreshes/updates when you move the DeleD scripting dialog box,but usually you need to close DeleD scripting before you can see all your results...

So if you execute twice, your scene will scale 4x instead.

Have a nice sleep ZZZZzzzzz..... Wink

cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Tue May 19, 2009 1:08 am    Post subject: Reply with quote

Hi all,
as well as the primitive Import_RAW() command, there is now a Import_PLG() command too Smile

The PLG file format is the one used for the REND386 DOS 3d virtual reality program that came out in the early '90s

Some example PLG files are here:

http://www.martinreddy.net/ukvrsig/rend386.html

The specification of PLG can be found here:

http://local.wasp.uwa.edu.au/~pbourke/dataformats/plg/

Also, the Import_ commands now can supply an optional boolean value (true or false - is case sensitive) to say whether the polygons are reversed or not if required.

There are some other new commands now too:

Primitive Object Commands

GetMinX() & GetMaxX()
GetMinY() & GetMaxY()
GetMinZ() & GetMaxZ()

obviously returns the min and max values for the bounding box of the primitive Smile

SetAsBox(w,h,d,x,y,z)

sets the current primitive as a 3d box:

w = width (x)
h = height (y)
d = depth (z)

I have updated the documentation and dll in the zip file Smile

I have also included a PLG import script example, and an example PLG file as well (from some game called Dactyl in a virtual reality program in the early '90s)

http://fpc4gp2x.eonclash.com/downloads/DeleDScript.zip

Get it while it is hot! Wink

cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Tue May 19, 2009 2:38 am    Post subject: Reply with quote

Two more commands have been added:

Primitive Object Commands


SphericalMap_UseNormals() - This command will attempt to spherically texture map this primitive using vertex (smooth) normals calculated from the primitive. See here for explanation of spherical mapping with normals:

http://www.mvps.org/directx/articles/spheremap.htm

SphericalMap_UseVertices() - This command will attempt to spherically texture map this primitive using vertex positions relative to the primitive’s origin. See here for explanation of positional spherical mapping:

http://www.mvps.org/directx/articles/spheremap.htm

Zip (dll + doc) file is updated, so enjoy Smile
cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Tue May 19, 2009 6:21 am    Post subject: Reply with quote

wow... If you keep adding new functions at this rate, there will be no need for my UV-plugin when It's released. Sad

Good job though... I'm in the middle of my exams here, so I can't take a closer look just now, but I will do that sometime. Smile


Last edited by chronozphere on Tue May 19, 2009 6:43 am; edited 1 time in total
Back to top
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Tue May 19, 2009 6:38 am    Post subject: Reply with quote

chronozphere wrote:
wow... If you keep adding new functions at this rate, there will be no need for my UV-plugin when It's released. Sad

Good job though... I'm in the middle of my exams here, so I can't take a closer look just now, but I will do that sometime. Smile


lol...don't worry, I'm not making a UV editor like you are, I just wanted to add 1 or two simple UV functions (mainly as tests, but could be useful).

You will still have a UV plugin job Wink

cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Wed Jun 03, 2009 4:52 pm    Post subject: Reply with quote

So, are you still working on this? Smile Any more features you want to implement?
Back to top
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Wed Jun 03, 2009 10:41 pm    Post subject: Reply with quote

chronozphere wrote:
So, are you still working on this? Smile Any more features you want to implement?


Hi chronozphere,
yes I am still working on this, I am trying to add obj (and possibly 3ds) importing to the scripting...was having some issues though.

I have slowed down working on it at the moment due to me now attempting to help Paul-Jan and Jeroen with fixing DeleD bugs and doing enhancements Smile

I will try and release a newer version soon though...
cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
AWM Mars
Member


Joined: 06 Jan 2010
Posts: 1195
Location: Wilts England

PostPosted: Fri Jun 18, 2010 4:26 pm    Post subject: Reply with quote

I can see the benefits of using such a tool to produce random asteriods, plants, grass etc etc.... but getting my head around scripting a programme to do it.. I'd have to do it manually lol.

Seriously, its a great tool, one I can see a lot of people gaining from. You do good work Paul Smile
_________________
Politeness is priceless when received, cost nothing to own or give, yet some cannot afford.

Checkout:
http://www.awm.mars.yourinside.com/
http://www.bccservices.co.uk
http://www.localtradecheck.co.uk
Back to top
View user's profile Send private message Visit poster's website
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Sat Jun 19, 2010 12:12 am    Post subject: Reply with quote

AWM Mars wrote:
I can see the benefits of using such a tool to produce random asteriods, plants, grass etc etc.... but getting my head around scripting a programme to do it.. I'd have to do it manually lol.

Seriously, its a great tool, one I can see a lot of people gaining from. You do good work Paul Smile


Thanks for the kind words Smile

I am currently trying to integrate the scripting directly into DeleD now, but I will continue this AFTER chronozphere and I get the paths fully working first Wink

cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DeleD Community Edition Forum Index -> DeleD Plugins All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum