We are pleased to announce that the si-community board has been upgraded to phpBB version 3.2.1! Let us know what you think , report bugs , and find out what has been improved in this thread
Click the "X" in the upper right corner to close this announcement

Custom Opengl Icons primitives (SI 2014+)

Post Reply
Ahmidou
Posts: 105
Joined: 04 Jan 2010, 15:00

Custom Opengl Icons primitives (SI 2014+)

Post by Ahmidou » 20 Jun 2013, 17:16

Hi there,
I was missing this feature since a long time so I gave it a go :)
This plugin use a json file as definition so you can add as many shapes you want.

thigs to know:
-It have SRT offset and size parameters, and currently support only one closed curve per icon.
-The icon.json file must be in the same directory than the dll (in the plugin folder), and the definition is a flat array of formated like this [x0,x1,x2...,y0,y1,y2...,z0,z1,z2...].
-Performance wise, a quick benchmarck showed that it's ~7% slower than a curve equivalent, but the good thing is that it has it's own type (Icon) and can be filtered .
-The primitive is located in the create>primitive menu

-You need to install this: http://www.microsoft.com/en-us/download ... x?id=30679
-It's not tested that much, use it at you own risk!!!

[edit] I've updated it, now the BBox is correct and I added a few icons

Cheers
A.
Attachments
AL_Icons.rar
(31.37 KiB) Downloaded 183 times
Last edited by Ahmidou on 21 Jun 2013, 15:04, edited 2 times in total.

EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 02:41
Contact:

Re: Custom Opengl Icons primitives

Post by EricTRocks » 20 Jun 2013, 19:17

Plug-in not loading and has the red triangle in the plugin manager. :( No errors logged either.
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

User avatar
xsisupport
Posts: 713
Joined: 09 Jun 2009, 11:02
Location: Montreal Canada
Contact:

Re: Custom Opengl Icons primitives

Post by xsisupport » 20 Jun 2013, 20:30

Nobody ever wants to say what version they use :)

Anyways, same thing with Softimage 2014 SP1 on Windows 7.
Depends says MSVCR110.DLL is missing (so I need vc2012 redist, right?)

And all these too:
API-MS-WIN-CORE-COM-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
API-MS-WIN-SHCORE-SCALING-L1-1-0.DLL

but I assume they all come with the vc2012 redist.
// Steve Blair
// "You're not a runner, you're just a guy who runs" -- my wife
//
// My Blogs: Arnold | Softimage

EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 02:41
Contact:

Re: Custom Opengl Icons primitives

Post by EricTRocks » 20 Jun 2013, 22:34

I don't use versions.... :D sorry should have said I was on 2013 SP1.
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

Ahmidou
Posts: 105
Joined: 04 Jan 2010, 15:00

Re: Custom Opengl Icons primitives

Post by Ahmidou » 21 Jun 2013, 00:11

xsisupport wrote:Nobody ever wants to say what version they use :)
Sorry about that, so yes it's for Softimage 2014+ and you need 2012 redistributables?
Also there is a little bug with the bounding box, I'll fix it this wek end.

Cheers,

User avatar
Daniel Brassard
Posts: 805
Joined: 19 Mar 2010, 00:38
Location: St. Thomas, Ontario
Contact:

Re: Custom Opengl Icons primitives (SI 2014+)

Post by Daniel Brassard » 24 Jun 2013, 14:26

Screen grab / Video?

I may be interested in this as a way to expand the primitive library of Softimage (400+ primitive objects from several families of polyhedra to parametric surfaces)
$ifndef "Softimage"
set "Softimage" "true"
$endif

Ahmidou
Posts: 105
Joined: 04 Jan 2010, 15:00

Re: Custom Opengl Icons primitives (SI 2014+)

Post by Ahmidou » 24 Jun 2013, 15:22

well there is not that much to show, it's just like the native implicit curve with a combo box, and an external file with primitive definitions that you can edit.
I forgot to add, the array is 1D and formatted like this [x0,x1,x2,....y0,y1,y2,.....z1,z2,z3....]
it's only drawing curves, you can have a look to the source code here:
https://bitbucket.org/ahmidou_lyazidi/al_icons/src

Cheers
A

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest