- Posts: 2580
- Thank you received: 0
Cone Transparency
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
Less
More
5 years 6 months ago #205524
by snowgoer540
Cone Transparency was created by snowgoer540
One of the more astute QtPlasmaC users pointed out that in both Axis and Gmoccapy the cone in the preview window is slightly transparent.
I spent a fair amount of time rummaging through the code for Axis, Gmoccapy, and qtVCP but was unable to come up with either how they did it, or how to do it myself. I had Phill take a peek too but we both came to the same conclusion... ideally it’d be nice to give the user a choice as to how opaque the cone is. Similar to how cone size can be set.
At any rate, I appreciate any insight you might have.
I spent a fair amount of time rummaging through the code for Axis, Gmoccapy, and qtVCP but was unable to come up with either how they did it, or how to do it myself. I had Phill take a peek too but we both came to the same conclusion... ideally it’d be nice to give the user a choice as to how opaque the cone is. Similar to how cone size can be set.
At any rate, I appreciate any insight you might have.
Please Log in to join the conversation.
5 years 6 months ago #205534
by persei8
Replied by persei8 on topic Cone Transparency
The cone is drawn in /usr/lib/python2.7/dist-packages/rs274/gl_canon.py. If you know OpenGL, you could probably figure out how to adjust the transparency. For those who don't already know, the cone size can be set with a CONE_BASESIZE parameter in the DISPLAY section of the ini file.
Jim
Jim
Please Log in to join the conversation.
5 years 6 months ago #205541
by cmorley
Replied by cmorley on topic Cone Transparency
ok I got it fixed.
The amount of transparency can be changed but it's buried a bit in the code.
Let me know if this works for you.
The amount of transparency can be changed but it's buried a bit in the code.
Let me know if this works for you.
Attachment not found
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 2580
- Thank you received: 0
5 years 6 months ago #205543
by snowgoer540
Yep, that looks great, Thank you!
Replied by snowgoer540 on topic Cone Transparency
cmorley wrote: ok I got it fixed.
The amount of transparency can be changed but it's buried a bit in the code.
Let me know if this works for you.
Yep, that looks great, Thank you!
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 2580
- Thank you received: 0
5 years 6 months ago #205546
by snowgoer540
Replied by snowgoer540 on topic Cone Transparency
I take that back...
Oddly, it is transparent when looking down on it, until you load a program. Then the transparency goes away (from Z orientation).
If I click P, I can see through 1 wall of the cone, but not both.... shrug. weird.
Oddly, it is transparent when looking down on it, until you load a program. Then the transparency goes away (from Z orientation).
If I click P, I can see through 1 wall of the cone, but not both.... shrug. weird.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 2580
- Thank you received: 0
5 years 6 months ago #205547
by snowgoer540
Replied by snowgoer540 on topic Cone Transparency
Before load Z:
After load Z:
After load P (through one wall transparent):
Attachment not found
After load Z:
Attachment not found
After load P (through one wall transparent):
Attachment not found
Please Log in to join the conversation.
5 years 6 months ago #205574
by cmorley
Replied by cmorley on topic Cone Transparency
ok pull again and try - the cone might be a bit darker now though.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 2580
- Thank you received: 0
5 years 6 months ago #205578
by snowgoer540
That did the trick, looks great!
Thanks Chris.
Replied by snowgoer540 on topic Cone Transparency
cmorley wrote: ok pull again and try - the cone might be a bit darker now though.
That did the trick, looks great!
Thanks Chris.
Please Log in to join the conversation.
5 years 6 months ago #205596
by phillc54
Replied by phillc54 on topic Cone Transparency
I like this, it looks really good.
Please Log in to join the conversation.
Time to create page: 0.095 seconds
