Questions tagged [rendering]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

SDL 2 SDL_BLENDMODE_BLEND way faster. Why?

I was just tinkering around with a simple ecs, when I noticed drawing like 20,000 rectangles killed my framerate (~10 FPS). I thought ok, maybe it's just too many. Later I wanted to draw them ...
1
vote
0answers
34 views

Unity: Record real time game play in high quality using offline rendering?

I'm looking to record Unity gameplay at really high quality (360 Stereo 8k 120 fps). I can't do this in real time due to the GPU resources required so I need to do offline rendering (frame perfect ...
0
votes
0answers
35 views

Masking cameras for Voronoi splitscreen

I would like to mask a camera to only render to a certain (non-square) region of the screen, to be used as an overlay, for splitscreen, or any other application. The goal is obviously to prevent any ...
0
votes
2answers
65 views

Vertexes passed to OpenGL becoming zero

I've got two methods of test code. The first uses a single VBO with the vertices and texture coordinates interwoven to draw a square to the window. The second uses an array of three VBOs to define the ...
0
votes
0answers
47 views

Drawing pixels with SDL2 advice, is it fine to draw them one by one on the CPU?

I want to make a raycaster and I figured out how to open a window and draw pixels to it with SDL2, but the way I am doing it now just doesn't seem very efficient, I figured out how to do it from ...
0
votes
0answers
16 views

Converting to LWRP in unity leads to everything being purple

I was trying to use Unity's shader graph which leads me down the path of needing to convert to lightweight render pipeline. When I did I found everything is now pink, not just one or two assets like ...
0
votes
2answers
28 views

How to give a certain scene different preference settings then other scenes unity

In my unity game that I am creating there are 4 scenes. 3 of those scenes rely on a backdrop because they are the main menu, death screen and the escape screen(for when you escape the place). ...
0
votes
0answers
23 views

Rendering 10M point that changing position (individualy) at 30Hz

i'm able with openTk (vb.net) to draw 10M of points adn rendering it. The problem is that the bind operation take 114mS on every frame refresh. I need to refresh the position at 30 Hz , so what can i ...
0
votes
0answers
20 views

How can I get my physically based sky to be blue all the way down?

I'm rendering with a physically based sky. I want to get a very simple light blue background but below the horizon the sky becomes grey/brown. How can I get it so that the sky is blue all the way down?...
1
vote
1answer
19 views

How do you simulate UV light and materials with UV-reflective/fluorescent properties within a PBR renderer?

I have a PBR setup, say, in Unity (or Unreal, doesn't really matter, I'm asking about the general principle, not specific implementation), and I would like to add a UV light source, and have control ...
0
votes
0answers
7 views

Adding lighting to custom vertex shader in Unity

What's the simplest way to add shadow functionality based on the modified vertices, nothing I've found online seems to work ...
0
votes
0answers
43 views

For drawing many layered 2D tiles, should one use the painter's algorithm, or Z-buffering?

Sorry if this question doesn't make sense, I'm still very new to WebGL / OpenGL. Basically, I'm trying to draw a tilemap similar to the one in Stardew Valley. Here's a screenshot from that game: https:...
0
votes
0answers
13 views

SpriteRenderer.flipY not functioning

The problem I'm having is that my script, which has access to the spriterenderer on my gameobject, won't flip the sprite when I directly type "sprite.flipY = true;" at the end of my ...
0
votes
0answers
35 views

How to draw the player standing behind a tree in an Entity Component System?

I'm making a top-down Javascript canvas game using the Entity Component System architecture. For an entity to be drawn on the screen every frame, it needs a ...
0
votes
1answer
23 views

Bake a heightmap from Editor

I want to implement a heightmap-based water simulation algorithm in Unity. I know exactly how I would approach this in pure low-level C++ and OpenGL (and also Shadertoy), and most of it is ...
0
votes
0answers
22 views

An ECS rendering system [duplicate]

I'm planning to implement an ecs system for my game but i have foreseen a problem. How will a rendering system be able to render entities in the correct order based on their depth component? What ...
1
vote
0answers
38 views

What is the best way to bake my own environment maps?

My engine has support for IBL by using pre-obtained HDRIs. It looks fine, but... I want the environment map to match the scene that is currently being rendered I want the environment map to take the ...
3
votes
1answer
121 views

How to draw grass sprites without using gameobjects?

I am making a rimworld-like procedurally generated 2D game using Unity's tilemap system. Just like tiles, I also have to procedurally generate grass and trees. Each grass instance should have logic ...
0
votes
0answers
31 views

What is the math to project a 3D object's center onto a 2D plane?

What I really need is the x,y of the object when it is outside of the screen: I'm actually coding a UI in Objective-C, not a game. In this different kind of UI you navigate a 3D space with objects. ...
0
votes
1answer
64 views

In Unity, why does DrawProceduralNow work in OnRenderObject but DrawProcedural does not?

In Unity, if I call DrawProcedural (or one of its variants) from Update() it works fine, but if I make the exact same call from <...
0
votes
2answers
64 views

How do you have the clothing mesh hide the body mesh underneath?

How do you have the clothing mesh hide the body mesh underneath, to prevent odd patches of body from sticking out in tighter modular clothing? Is there some sort of shader trick that can have the ...
0
votes
0answers
18 views

How to make a point light cast shadows in realtime?

I have a solar system... The central star has a point light attached to it. However, objects don't cast shadows on each other... Planets are < 20 units from the star, so it's not a light falloff ...
0
votes
0answers
21 views

Trouble projecting pixel back to worldspace in PixelShader [DX11]

For the last two days, I've been trying to get some code working to project pixels back to world space in my pixel shader. Im working on a fairly basic deferred renderer, and I'm using this world ...
0
votes
0answers
72 views

FPS drop on rendering

I am trying to create my own game in java (without OpenGL, LWJGL etc) and I am having a problem with the rendering. My map is pretty big and the game redering the entire map at once which cause a ...
0
votes
1answer
40 views

Rendering tiles at a larger size for a detailed look

I'm trying to make my 32-bit tiled map become more "zoomed" in. However, I experience an error that I can't resolve. Firstly, I followed this post on how to render the tiles larger. This is ...
0
votes
1answer
88 views

How do I apply Ambient Occlusion in Forward Rendering to the ambient term only?

I want to integrate Ambient Occlusion into my rendering which is a forward renderer. How do I apply Ambient Occlusion to the ambient term only and thus not as a "post process" over the ...
0
votes
2answers
71 views

Should a game object class contain the information for how to render it?

If I have a class called Enemy: // Simplified version class Enemy { float xPosition_; float yPosition_; int hp_; }; Should this class also contain the ...
1
vote
1answer
37 views

How do I refer to the two types of loading screen?

I'm troubleshooting some issues beyond the scope of this forum, and I'd like to be able to talk about certain parts of the gaming experience, specifically the two types of loading screen I see in Prey....
0
votes
0answers
30 views

How do I map a point from the original picture to a scaled version picture?

I'm trying to implement supersampling antialiasing in my software renderer.And per my understanding,I need first render everything to a 4x- scaled buffer then average every four pixels' colors of that ...
0
votes
0answers
32 views

16bit triangle lists vs 32bit triangle strips

When drawing geometry we may use indexed drawing, where we pass index of the vertex we want to draw in array. In this case we need to pick a topology for our geometry and the type of indices. Popular ...
0
votes
1answer
22 views

Is it okay to update the graphical handlers in the same function where you render them?

I have a class called 'GraphicalHandler' that all my graphical handlers inherit from the main game loop. The class manages a static vector of pointers to all instances of itself. I can then call the ...
0
votes
0answers
14 views

Render order in 3/4 view game

I'm writing a 2D game with an internal 3D space. The view is 3/4 view. I've run into trouble with the render order of entites. Context: The world uses a tile system, like a 3 dimensional lattice, each ...
1
vote
1answer
101 views

How to manually render with a given camera in Unreal Engine 4?

I would like to render with any camera at any given time for a Portal clone project. There's a USceneCaptureComponent2D but it renders the whole scene to a texture. ...
0
votes
1answer
39 views

Vulkan dynamic UBO weird numbers

Why these numbers?? I have created a dynamic ubo and two objects, one for view and proj and the other for model. Here I update the objects: ...
0
votes
0answers
39 views

Portal frustum culling

Our Levels consists of rooms. Each room has an arbitrary number of portals into other rooms. We frustum cull rooms by testing whether all portal vertices (a portal consists of a single quad) are ...
0
votes
0answers
14 views

Transparent objects in the scene only get lit half way by point light

I have encountered a weird graphics problem, where all of our transparent objects in the scene only get lit half way (only from the y position downward) by a point light. This happens with all of our ...
0
votes
0answers
25 views

Are there drawbacks to resizing mesh renderer bounds?

I had a problem yesterday where some of the meshes were not visible. I figured out the problem, which was that the mesh renderer bounds were not in the cameras field of view. So, in order to make the ...
0
votes
0answers
30 views

Implementing DirectX 7 light attenuation in Unity's Universal Render Pipeline

I am create a modern Unity based client of an old MMO from 2000, and I am working on implementing their lighting system. Based on the data I have reverse engineered, it looks like they used a custom ...
0
votes
0answers
38 views

Unity UI subpixel rendering/antialiasing with Image.fillAmount?

I'm using DoTween to tween the fillAmount of a UI Image. When I check the value, it changes smoothly, and in the scene view it appears to transition smooth. However it appears jerky in the game view, ...
1
vote
0answers
67 views

OpenGL model not rendering properly

I have been playing with OpenGL for a while and I came into the wall that I don't know how to pass. I am trying to render a model of an object based on a .obj file. In that file I have position ...
0
votes
1answer
108 views

My pixel art looks weird in the game view in Unity [duplicate]

I am making my first 2D game in Unity and something has been bothering me. If I'm in the scene view, my game looks fine but when I go to the game view the pixels in the sprites aren't rendered ...
0
votes
0answers
131 views

How do I fix missing anti-aliasing in the Unity scene view and game?

Both the editor and the game seem to lack anti-aliasing even though quality is set to Ultra. I chose the "3D" project template when I created the project, so I am using the build-in render ...
0
votes
0answers
45 views

Questions about “stateless, layered multi-threaded rendering”

I have read this blog: https://blog.molecular-matters.com/2014/12/16/stateless-layered-multi-threaded-rendering-part-3-api-design-details/ Where does a setup like this bind textures/buffers and does ...
-1
votes
2answers
155 views

what C++ library is this project using to render? [closed]

I was looking at this library https://github.com/blend2d/blend2d .It does not use gl , glut of glfw.How is it rendering?
1
vote
2answers
182 views

OpenGL only rendering 4 tris of cube?

I'm on Win10, OpenGL 4.5 I wrote some code that takes mesh data from an OBJ file and puts it into a vertex buffer. I used this code to import a cube OBJ and render it in OpenGL. For some reason, ...
0
votes
0answers
31 views

Rendering a textured 3D cube in R

I am trying to render a 3D cube in the R programming language, and add a texture to each cube face. So far I have this code that draws the cube: ...
0
votes
1answer
70 views

How to fix lag in 64 bit Android devices

My game's FPS drops to 30 - 8 FPS on any 64 bit Android device but is at 59 - 60 FPS on an even lesser 32 bit Android device. I've tried unchecking Development Build on Build settings and I've tried ...
0
votes
0answers
33 views

Current state of the art for rendering large numbers of dynamic lights?

This is intended as a platform-agnostic question, but I currently use OpenGL (with sights on Vulkan) if it is relevant. The last time I dealt with creating lots of dynamic lights (~10 years ago), the ...
0
votes
0answers
48 views

Rendering methods comparison

I'm learning the basics of writing the game engine. Now I'm on the rendering the scene aspect using the page flipping method. I roughly understand the theory but ...
0
votes
0answers
42 views

Unity HDRP draw order doesn't change when asset is set to higher priority?

I don't like the way that light got baked into part of my mesh. It might make sense for me to try to blacken that area of the lightmap in Photoshop, but first I tried to just hide it with a probuilder ...

1
2 3 4 5
24