Questions tagged [rasterization]
The rasterization tag has no summary.
38 questions
0
votes
0
answers
114
views
How do portals in Duke Nukem 3D traverse into other sectors properly while keeping things rendering normally?
I'm making a very simple portal based software renderer in PyGame that just uses portals as links to other sectors - like a window or doorway. I've have gotten somewhat far, with texture mapping (...
2
votes
0
answers
59
views
How do I get this texture mapping for my quad (no triangles) to be perspective correct?
I'm working on a 3D Software Rasterizer and I'm wanting to render textures on walls now. I've tried to do it myself, but failed since it just distorts. I read up on the wikipedia page for Texture ...
1
vote
1
answer
99
views
Why do I see a wireframe when rendering with conservative rasterization and disabled Z writes?
I wrote a shader that implements most ShaderLab commands:
Rendering without anything fancy:
After enabling conservative rasterization:
After disabling Z write:
Ironically, that's exactly what I ...
0
votes
1
answer
141
views
How do I implement floors and ceilings properly to my DOOM Style Renderer?
I'm working on a tiny DOOM Style Renderer and I've managed to piece together something that can render walls. I pieced it together by looking at videos from 3DSage and The Old School Coder; I got a ...
0
votes
0
answers
72
views
Why do the points of my triangle bend inwards?
I'm trying to make a tiny software renderer in hopes I can make some crappy little game in the far future, and I've hit a roadblock where nothing helps at all. I've found that whenever I go into the ...
1
vote
0
answers
181
views
Is there a reason that we have to use homogeneous coordinates in rasterization?
Looking at the pipeline of games, I am confused about the necessity of homogeneous coordinates.
For gameplay logic, a 4x3 matrix is enough to handle translation, rotation, and scale. I can't think of ...
0
votes
1
answer
432
views
How to achieve no gaps between triangles in software renderer like in Quake?
I've heard alot that I need to use fixed-point math, top-left rule, etc. to eliminate gaps between triangles but the thing is how did Quake not have any gaps, did it? I've seen Quake's math file and ...
0
votes
2
answers
666
views
Raster Graphics vs Vector graphics
There was this game that I used to play when I was a kid. It's named Another World. It was ahead of its time in graphics, it even has real-time cutscenes on the SNES version. That game does not use ...
0
votes
1
answer
549
views
Barycentric coordinates outputting coordinate outside of triangle
So I am trying to draw and fill a triangle on the screen using the barycentric method, but my barycentric implementation seems to be outputting outside triangle coordinates, why?
...
1
vote
1
answer
701
views
Geometric clipping of triangles intersecting near plane
I was reading about how rasterization works but there is one topic I can't quite understand.
After perspective projection, our point is in clip space as I understand it.
Now we test all points in a ...
-1
votes
1
answer
309
views
Opengl in 500 lines barycentric calculation question
https://github.com/ssloy/tinyrenderer/wiki/Lesson-2-Triangle-rasterization-and-back-face-culling
I cannot figure out how we go from uAB-vector + vAC-vector + PA-vector = 0 to the linear system with ...
1
vote
1
answer
134
views
Opengl in 500 lines point in triangle question
https://github.com/ssloy/tinyrenderer/wiki/Lesson-2-Triangle-rasterization-and-back-face-culling
I am on lesson 2 of the "Opengl in 500 lines" tutorial. I ...
0
votes
0
answers
139
views
How can I draw filled triangles with the illusion of color?
So I have used the code of this website for drawing filled triangles. But I would like to improve my game by adding the illusion of color. Well sadly I made my game for the monochrome Nokia 5110 ...
1
vote
2
answers
7k
views
How can I draw filled triangles in C++?
VERY IMPORTANT NOTE: Im trying to fill a triangle. I have already made the 3D part. Sorry if this wasn't understandable.
I'm currently trying to create a simple 3D-Engine. Well, I have successfully ...
0
votes
1
answer
383
views
Can I linear interpolate color along both the X and Y axis of a circle instead of using the distance formula on each individual point?
I've been unable to make it work and I'm not sure whether it's a problem with my code or if this can even be done. I'm sure there is a way to prove whether it is possible mathematically but I don't ...