Solved

POV-Ray cones question

Posted on 1998-06-18
16
393 Views
Last Modified: 2010-04-27
Is it possible to make the end of a cone curve up or down in POV Ray so that the cone wouldn't just be straight?  An example picture of what I want (really primitive) is at http://www.pnn.com/~dbaldwin/game/example.gif  Could I get example code, too?
0
Comment
Question by:trollman
16 Comments
 
LVL 1

Author Comment

by:trollman
ID: 1112759
Adjusted points to 70
0
 
LVL 1

Author Comment

by:trollman
ID: 1112760
Adjusted points to 80
0
 
LVL 1

Author Comment

by:trollman
ID: 1112761
Adjusted points to 90
0
 
LVL 1

Author Comment

by:trollman
ID: 1112762
Adjusted points to 100
0
 
LVL 5

Expert Comment

by:gbentley
ID: 1112763
If you want to use the cone object then the answer is no. It is strictly a straight cone.

The only way that you can do this is to create the shape from a mesh of triangles. The difficulty of doing this depends on your maths skills.

If you want some more information on this, please comment on this answer.
0
 
LVL 1

Author Comment

by:trollman
ID: 1112764
I would like to know how to do it with a mesh of triangles.  I actually just wanted a cone shaped object, not necessarily a cone.  Guess I should have specified that!
0
 
LVL 1

Author Comment

by:trollman
ID: 1112765
If you are still out there, gbentley, I would still like to know how to do it.
0
 
LVL 5

Expert Comment

by:gbentley
ID: 1112766
Trollman,

Give me a day or so, and I'll get back to you. I don't have a full time connection, so I only just got your message.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:trollman
ID: 1112767
OK, whenever is fine.
0
 
LVL 5

Expert Comment

by:gbentley
ID: 1112768
I am having a lot of trouble getting the maths right on this one. I will keep trying as it is something that I also want to do. The main trouble is that shortish cones "wrinkle" when you bend them.

In the meantime, there is another way. Look for Chris Colefax's plugin called BENDER. This is on the net. Just search on his name. This is an include file that lets you bend any kind of object in POVRAY. It is fairly easy to use.
0
 
LVL 1

Author Comment

by:trollman
ID: 1112769
Alright, I will try that and give you the points if it works for me.   I probably won't be able to try it until the end of the day.

Jonathan Baldwin
0
 
LVL 1

Author Comment

by:trollman
ID: 1112770
I am pretty sure that plug-in will work, but I can't seem to get it to.  I got it to look sort of all right, but then it started to do weird things.  Do you think you could give me some code that would make a bent cone that would look good?  Sorry for taking a while to get back, I have been away for a while and I was very busy.  I raised the points up.
0
 

Expert Comment

by:AfroNinja
ID: 1112771
There may be another way to do it.  I don't know how familiar you are with L-Systems, but if you define a shape using LParser (available from http://www.xs4all.nl/~ljlapre/) with a starting thickness of 1 or 0 and define a path that expands and turns as you need, you can then get exactly the shape you need.

Here's a sample LParser script to do this.  I haven't tested it, because I'm not at a computer where I can currently do so, but if I get the chance to refine it, I'll let you know.

---begin script
2          # 2 Levels of recursion.  This allows it to complete the script once
20        # Roll /  Pitch / Yaw angle
1          # Starting Thickness
A         # Starting Rule
# Rules
A=BBBB"?F"?F"?F
B="?F+
@
---end script

Again, that won't work for sure, but it's worth a shot.
0
 
LVL 1

Author Comment

by:trollman
ID: 1112772
I'll try that as soon as possible and write back if it works.
0
 
LVL 1

Accepted Solution

by:
Patricia080698 earned 300 total points
ID: 1112773
I might have another solution to your problem. If you want your cone to have a rounded corner, I would suggest making a cone with a cutout end and adding a circle at the end. same place as the cutout end. Put It in a way that they are one over the other one and make them the same color or texture. Good luck.
0
 
LVL 1

Author Comment

by:trollman
ID: 1112774
That actually looks pretty good!  Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using older programs/reverse engineering 5 67
D3, Javascript, SVG, HTML canvas, div 2 106
MS PAint how to type 14 140
Windows 10 Photo Editor that works on Domains 4 82
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In this Micro Tutorial viewers will learn how to remove an unwanted object using Photoshop’s feature known as content-aware fill.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now