question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specifying Vanishing Points

See original GitHub issue

I recently tweeted mrdoob about this, but I think this may be a better forum to express this issue.

I would like for there to be some way to set vanishing points in the image that the cubes I add to a scene adjust to. Like below:

The cubes that I add onto a scene now using scene.add(cube)

assume that the center of the screen is the vanishing point and only assume one vanishing point, unlike above. I can certainly adjust the position of the camera to simulate an alternate vanishing point, but is there a way for me to set the vanishing point explicitly? More importantly, is it possible to have multiple vanishing points?

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
theo-armourcommented, May 24, 2012

@aashidham

A typical reason for wanting to do this type of action is when somebody is trying to overlay a 3D image over a photograph.

Is the the type of thing you are looking for?

0reactions
WestLangleycommented, May 8, 2012

@aashidham

More importantly, is it possible to have multiple vanishing points?

Without hacking the camera.projectionMatrix code, in camera space the answer is no. However, as you said, in world space you can simluate it.

Can you explain again what capability you’d like to have?

Are you interested, for example, in being able to programmatically set the camera parameters, given the coordinates of the 1, 2, or 3 (world) axis vanishing points?

In other words, to ask the question another way, what parameters do you want to specify, and what parameters do you want to programmatically determine?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vanishing point - Wikipedia
A vanishing point is a point on the image plane of a perspective drawing where the two-dimensional perspective projections of mutually parallel lines...
Read more >
How to Use Vanishing Points in Your Photography - Masterclass
A vanishing point is a single point on the horizon line in an image where parallel lines converge to give the illusion of...
Read more >
What Is a Vanishing Point in Art? - LiveAbout
A vanishing point, or point of convergence, is a key element in many works of art. In a linear perspective drawing, the vanishing...
Read more >
How to place vanishing points - Martina Cecilia
Place the Horizon Line ... The Horizon line's placement helps in thousands way but many people never really focus on this. The Horizon...
Read more >
Vanishing point | Glossary | National Gallery, London
The vanishing point in paintings forms part of a linear perspective scheme. It is the point in fictive space which is supposed to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found