Skip to main content

Questions tagged [rendering]

The process of generating an image or series of images from a model by means of computer programming.

0 votes
1 answer
37 views

Should tiles from a tileset atlas be separated into individual images when the program loads?

I load a large tileset image in at the start of my program. To draw the game world, I loop over a 2D array of tile IDs and based on that ID I cut out a 16x16 portion from the tileset and draw that as ...
ChocolateCyanide's user avatar
0 votes
0 answers
25 views

What are the consequences of using AfterRenderingTransparent for grass?

I followed a tutorial for unity URP stencil to hide objects, I want to use it to hide terrain grass under objects like vehicles, houses, etc.. The tutorial says to create 2 layers, and create render ...
John Smith's user avatar
  • 1,255
1 vote
0 answers
41 views

Cannot transform vectors from viewport to world

I started working on a small raytracer project, and i decided to reuse my already existing openGL renderer to do this, i'm using GLM to manage transforms/positions. However, i stumbled upon a very ...
Bellaedris's user avatar
0 votes
0 answers
32 views

LOD selection issue

I have been developing an LOD algorithm similar to Nanite's style. I have been developing the algorithm using Vulkan .However, I encountered problems with LOD selection. It seems that the algorithm ...
Giuseppe's user avatar
0 votes
0 answers
70 views

Why is my Gouraud Shading not working correctly?

I am trying to write a 3d Renderer in C using SDL and cgml but my shading seems to be not working correctly. When rendering the teapot I get seams and when I want to render a cube I get a bright white ...
Finn's user avatar
  • 1
0 votes
0 answers
29 views

Rendering sometimes blocks when updating Index Buffer at runtime

I developed a way to update my index buffer at run-time in Vulkan. Unfortunately, sometimes the rendering process blocks. I think that is caused by the update of the index buffer. The following code ...
Giuseppe's user avatar
0 votes
0 answers
31 views

Regarding with pixel arrays and textures in SDL2

Currently, the way I render my frames is as follows. I have two arrays of pixels (in SDL_PIXELFORMAT_ABGR8888) called ...
Scene's user avatar
  • 123
0 votes
0 answers
82 views

How to compute screen-space error for LOD selection?

I'm developing a LOD selection system and I would like to select a LOD level based on screen-space error. Could someone explain how I can accurately compute the screen-space error?
Giuseppe's user avatar
0 votes
1 answer
45 views

Update index buffer in Vulkan at run-time

What is the proper way to update at run-time the index buffer in Vulkan? Many thanks
Giuseppe's user avatar
2 votes
1 answer
82 views

How to check if an AABB is behind another AABB while isometric depth sorting?

I have an isometric scene in a custom engine where my world sim is 3D, but I'm rendering sprites. To depth sort, I follow the approach in this blog post. Basically: wrap each sprite in an AABB, then ...
Archduke's user avatar
3 votes
0 answers
309 views

Avoiding z-fighting when reimplementing Freescape games

I need to avoid z-fighting in exactly co-planar surfaces that are too close to the other solids. I'm re-implementing the Freescape engine in ScummVM (all my code is open-source, available here), and ...
Gustavo Grieco's user avatar
2 votes
2 answers
117 views

In a modern game engine, what parts of the rendering process needs to be handled by the CPU?

In older systems, the CPU calculates the final vertex positions and feeds those, along with material properties, color, lighting info and uv position for each vertex and the GPU renders the image ...
NMITIMEN's user avatar
0 votes
0 answers
34 views

Terrain and SpeedTree objects render correctly in Editor, but not in Build in both Legacy and URP

The game runs and shows perfectly in Editor, but when I make a build, terrain and some other objects become invisible. This happens the same in both Legacy (Standard) and URP. I tried to create shader ...
Faizan Khan's user avatar
0 votes
0 answers
98 views

Why is SRP batcher breaking GPU Instancing?

So I was making this demo scene where there are tons of shells(green little rectangles), and they come from a prefab with shader and material that supports GPU instancing. But when I check the ...
Bobo's user avatar
  • 1
0 votes
1 answer
49 views

Load vertexes from an obj file

I do have a problem with loading my vertexes. When I debug my code. I find out the vertexes are loaded. But when i use render doc, I found out the vertexes are not loaded. Only the first line of my ...
mueoc mueoc's user avatar

15 30 50 per page
1
2 3 4 5
86