GithubHelp home page GithubHelp logo

Comments (6)

Isakwiberg avatar Isakwiberg commented on September 4, 2024

Even worse when models scale is big. Spawn a cube with scale around 10 and it wont be visible at all for example.

from emerald-engine.

hansfilipelo avatar hansfilipelo commented on September 4, 2024

Lage and I fixed this (I think) for other models. Does this only affect flat-shaded models?

/H-F

30 apr. 2016 kl. 11:59 skrev Isakwiberg [email protected]:

Even worse when models scale is big. Spawn a cube with scale around 10 and it wont be visible at all for example.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub #30 (comment)

from emerald-engine.

Isakwiberg avatar Isakwiberg commented on September 4, 2024

Tried just now on scale_model branch and a nanosuit with scale 10 gets culled away from many camera positions. Setting the glClearColor to something other than black lets you try with cubes that are not flat shaded. And they also disappear from many camera positions and angles when they should be visible.

from emerald-engine.

hansfilipelo avatar hansfilipelo commented on September 4, 2024

Think this line in Model.cpp could be a problem:

glm::vec3 r_vector = 0.5f * (max_corner - min_corner);

The radius isn't half the difference of the max_corner and min_corner - it should be just:

glm::vec3 r_vector = 0.5f * max(max_corner, min_corner);

Since the radius is calculated from 0 in model coordinates.

from emerald-engine.

hansfilipelo avatar hansfilipelo commented on September 4, 2024

Nope that totally fucked shit up...

from emerald-engine.

Isakwiberg avatar Isakwiberg commented on September 4, 2024

Fixed a few days ago. Thank you Erik!

from emerald-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.