Comments (6)
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.
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.
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.
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.
Nope that totally fucked shit up...
from emerald-engine.
Fixed a few days ago. Thank you Erik!
from emerald-engine.
Related Issues (20)
- Create LODs for grass generation HOT 1
- Noise texture for positions and rotations of grass HOT 1
- Lighting on grass does not look good HOT 4
- Prepare demo scene
- Design grass LOD shaders HOT 1
- Find outdoor models for forest
- Find large heightmap HOT 1
- Design demo scene
- Place models in demo scene and create a spline to follow
- Change to 24- or 32-bit heightmaps HOT 1
- Make grass bend when other models are near. HOT 1
- Non-uniform scaling for models from scene file HOT 1
- Tile Based Deferred Rendering
- Point Light Shadows
- Screen Space Reflections
- Depth of Field
- Motion Blur
- Fix grass animation bugs!
- Copyright HOT 3
- emerald cannot find tga resources HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emerald-engine.