Create an Halfspace Model and DiagramBRL-CAD
Status: ClosedTime to complete: 48 hrs Mentors: SeanTags: 3D, modeling, rendering

BRL-CAD provides a couple dozen distinct primitives.  Each primitive is defined by a set of parameters.  We'd like to have each primitive modeled with diagramming arrows and labels.

This task involves creating an infinite halfspace (HALF) and modeling the corresponding arrows/segments for all parameters.  Scalars should be dashed lines, vectors should be arrows.  Here's an example:

  • http://brlcad.org/~starseeker/gci_primitive_figures/

Make something like that for the HALF, but with different material properties.  That example put objects into a box for a particular visual effect.  See if you can get a better effect without the exterior box (you'll have to change shader properties).

Submit your .g file and a ray traced rendering/diagram of the model.  This command run within mged may help:

rt -s1024 -A0.75 -c {set ambSamples=128} 

Uploaded Work
File name/URLFile sizeDate submitted
half.png81.1 KBDecember 21 2012 10:19 UTC
half.g3.4 KBDecember 21 2012 10:19 UTC
half.g5.9 KBDecember 24 2012 00:41 UTC
New.png83.6 KBDecember 24 2012 00:42 UTC
half1.png393.4 KBDecember 24 2012 17:49 UTC
half.g7.7 KBDecember 24 2012 17:49 UTC
half.g13.6 KBJanuary 09 2013 12:27 UTC
latest.png16.5 KBJanuary 09 2013 12:28 UTC
half.g28.7 KBJanuary 10 2013 03:38 UTC
Capture.jpg162.4 KBJanuary 10 2013 03:48 UTC
half.g40.8 KBJanuary 10 2013 08:45 UTC
Capture.jpg145.7 KBJanuary 10 2013 08:46 UTC
Comments
Sharanon December 21 2012 08:59 UTCTask Claimed

I would like to work on this task.

Daniel Rossberg on December 21 2012 09:15 UTCTask Assigned

This task has been assigned to Sharan. You have 48 hours to complete this task, good luck!

Sharanon December 21 2012 10:21 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 23 2012 06:16 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Sharanon December 23 2012 06:25 UTCMore Work

What is the problem ? Can you explain it to me, so that i can complete it.

Sean on December 23 2012 06:28 UTCimage is confusing

This is one of the more difficult primitives to diagram, but I don't think your current image is right.  Halfspaces are defined as a distance along a vector from the origin.  The 'd' scalar is a distance along that vector (there is no 'D').  Overlaying the wireframe in mged and rendering with perspective enabled may help.

Sean on December 23 2012 06:28 UTCDeadline extended

The deadline of the task has been extended with 2 days and 0 hours.

Sharanon December 23 2012 06:42 UTCWork

The following work is to be done-(correct me if i am wrong)



  • rename 'D' to 'd'

  • overlay a wireframe


 

Sharanon December 23 2012 06:46 UTCI think i get it

Instead of 'N' vector there should be a 'd' scalar.And 'N' should be the sphere

Sharanon December 24 2012 00:42 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 24 2012 16:19 UTChalf the work

Not quite.  There should be a sphere at 0,0,0 with a vector (arrow) N going towards 'd'.  Basically, you need to shift the dashed line down so that 'd' is right on the surface where you currently have N, put N down "inside" the gray area, and add an origin with an arrow for N.  Something like this:


 


o  'd'


|  (dashed line)


|


^  'N'


|  (solid line)


|


o (0,0,0)


 


Then try rendering with:


ae 35 25


set perspective 60


Or some similar angle where you can see the ground plane disappear into the distance.

Sean on December 24 2012 16:20 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Sharanon December 24 2012 17:48 UTCReady for review

The work on this task is ready to be reviewed.

Sean on December 25 2012 06:27 UTCstill not right..

Sharan, that's closer but still not right.  'd' is where the "ground surface" is at.  If you shift the diagram (including 'N") down and put a label for the origin, it should be good.   

Sean on December 25 2012 06:27 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Sean on December 25 2012 06:28 UTCDeadline extended

The deadline of the task has been extended with 2 days and 0 hours.

Melange on December 27 2012 09:50 UTCTask Reopened

Melange has detected that the final deadline has passed and it has reopened the task.

Sharanon January 9 2013 11:22 UTCTask Claimed

I would like to work on this task.

Sharanon January 9 2013 11:26 UTCI would like to complete this

I was on my way to hometown when you extended it took two days on trains to reach there till then the task was reopened.


Today i am back from my hometown so i can complete the task now.


Please give me an another chance....

Daniel Rossberg on January 9 2013 12:01 UTCTask Assigned

This task has been assigned to Sharan. You have 48 hours to complete this task, good luck!

Sharanon January 9 2013 12:29 UTCReady for review

The work on this task is ready to be reviewed.

Sean on January 9 2013 20:44 UTCperspective?

Hi Sharan, welcome back!  That looks a lot better but the diagram is still very confusing.  Compared to the scale of the wireframe, you can't see the vector/arrow or the dashed line to 'd'.  Can you scale them up double or maybe triple size?


Also, is that with perspective enabled?  You can't tell if the "halfspace" wireframe is within the green or on top of it.  Try applying a stack shader to it with checker and plastic.  Also, try lowering the eye point a little so that the wireframe extends above the horizon (run ae command to set elevation lower, like ae 15 25 or something)


 

Sean on January 9 2013 20:44 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Sharanon January 10 2013 03:48 UTCReady for review

The work on this task is ready to be reviewed.

Sean on January 10 2013 05:48 UTCbetter

Better but that's a bit too dark.  Maybe try adding -A.75 or changing the checker colors to be a bit more bright..  Did lowering the elevation not work?  I'd think it'll look better to see the checker diminish into the horizon so it's clearly an infinite plane.  Something like http://www.featurepics.com/FI/Thumb300/20080615/Abstract-Grid-Horizon-769754.jpg but without the crazy sky and 3d gridlines ... and having the camera be a little closer to the ground.


Should also add a note saying either "origin" or "(0, 0, 0)" on the bottom sphere where the vector starts.  The rest -- the new arrows, spheres, and dashes -- looks perfect.

Sean on January 10 2013 05:48 UTCTask Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Sean on January 10 2013 06:27 UTCFYI

Sharan, thought you might like to know that I think you're currently tied with two others to make our top five.  There are also about three people within two tasks that have a chance of passing you up too.

Sharanon January 10 2013 08:46 UTCReady for review

The work on this task is ready to be reviewed.

Sean on January 10 2013 10:58 UTCstill not quite

It's not clear to me how you're getting that rendering as it looks like the annotation lines are on top of the plane, but I checked the .g and it looks like it's something we can work with.  This is more like what I meant: http://brlcad.org/tmp/half.png


That way it is more clear that the wireframe is actually sitting on the surface and the lines are underneath.

Sean on January 10 2013 10:58 UTCTask Closed

Congratulations, this task has been completed successfully.