Questions tagged [rendering]

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

0
votes
0answers
9 views

How can I update my materials to work with LWRP?

I'm using Unity 2019.1.6f1. When I open a new scene with the LWRP template project, I see errors from all materials in the scene. For example, the Jigsaw appears in my scene but in console window I ...
0
votes
0answers
18 views

What is the minimum system config need to render photorealistic human and cloth using PBR? [on hold]

We need to render a photo realistic human figure with muscle movements with photo realistic cloth simulation in realtime . The figure don’t have any background . That is only the human figure with ...
2
votes
1answer
40 views

How do I correctly show both sides of a plane in Unity?

I am trying to show both sides of a mesh. I understand this question has been asked a lot, but all of the answers I've found seem like they're written for Unity 5 and I can't find a "Cull" setting on ...
0
votes
1answer
45 views

Why is integer value not updating as a text?

I have a space shooter game and I am trying to create a shield power for the player ship. My mechanic for shield is working. When I press the shield power button(P), the shield power decreases from ...
0
votes
1answer
17 views

Rendering Problems(Artifacts, Flickering) with the Mirage Solo VR Headset

Im getting some strange flickering artifacts when testing on device (Mirage solo), this problem occurs on Unity 2018.3.2 and Unity 2019.1.2. Its not happening on other devices such as the OculusGo, ...
1
vote
1answer
63 views

Why are my screenshots created through a RenderTexture too small?

Current render result: When I am rendering image in Unity and saving as file(.png), quality of those files are reduced. They become tiny and very poor. How can I enhance that? Dimension of the ...
0
votes
0answers
25 views

Shadow problems with Unity's Lightweight Render Pipeline

So I installed the Lightweight Render Pipeline onto an existing project of mine and the placeholder model I've been using for the player (the broom) started showing a hole in its shadow. I don't ...
0
votes
0answers
38 views

How to fx low FPS in a single threaded Directx9 3D game

We're having issues with low FPS in a third-person shooter 3D game. This happens when you have too many polygons on screen. The FPS is locked to 60, and the gameplay is fine, but the moment when you ...
0
votes
1answer
17 views

Unity - Set/Manipulate Render-Buffer for “Render Overlay Effects”

Note This is more of a question on how/where to do furhter research into this topic becasue I do not know anything about it yet. If anyone has answers on how to accomplish this goal, I'd very much ...
0
votes
1answer
33 views

SDL2 doesn't render a window

A tutorial's code from LazyFoo wonderful place's 01_hello_SDL page doesn't show a white form, but a desktop's screen, like a screenshot. Something like: The code: ...
1
vote
2answers
54 views

Displaying pixels on a canvas at 60 hertz [closed]

I'm (new to SO and) attempting to code an "emulator" for an 8-bit CPU I am making with a friend. I have only ever used Java to make simple GUIs with Swing, and from reading similar questions it seems ...
0
votes
0answers
34 views

How do i update opengl lightning equation in my fragment shader to make my texture less glossy and more like a fabric

I built a model in blender, and am currently trying to import it into my android app using assimp together with opengl, i dont have any issues with the importing but my goal is to make the object look ...
1
vote
1answer
34 views

How can I draw lines and curves on a canvas that's not rendered?

I need to draw lines and curves on a canvas that is not rendered on the screen but just updates the array of pixels that would otherwise be rendered. I need this to separate my game engine from my ...
0
votes
0answers
32 views

How to reproduce examples from ShaderToy on my computer?

I am a beginner with computer graphics. I have some experience with drawing polygons, shaded surfaces, the use of geometry shaders, etc. I am trying to create a volumetric cloud/volume render shader ...
1
vote
3answers
154 views

How to render top-down perspective in a tile-based RPG?

My question is specifically about the type of perspective that GBA Pokemon games like Fire Red/Leaf Green have: I'm not sure of the correct terms for what I'm trying to achieve. I am using SDL2 and ...
3
votes
1answer
119 views

Octahedral impostors, Octahedral mapping

I'm facing some issues understanding this article about octahedral impostors. More specifically I quite don't understand how one can map the hemi-octahedron (subdivided) vertices to texture ...
0
votes
0answers
41 views

Looks like render in Unity ( Light Shaft on Particles etc.)

guys, i hope someone can help me, i want to get a looks like rendering, like a screen, i can buy Aura 2 and use volumetric light to have affect on Fireflies, and make a light shaft / good ray? The ...
1
vote
1answer
57 views

Video feedback effect with recursive RenderTextures in Unity 2018.3

I have a project where I'm playing with a video feedback effect by rendering a camera to a RenderTexture and pointing the camera at a quad displaying that RenderTexture. This works great normally, ...
1
vote
1answer
134 views

Black screen when building apk Unity

Alright, I have a bit of a confession to make: I accidentally posted this question in the wrong place: Stack Overflow. Whoops. Anyway, here's my problem. Sorry if you've seen this before. Here's the ...
1
vote
0answers
36 views

The gist of tweening with WebGL / OpenGL

I am trying to wrap my head around how to take advantage of shaders for things like tweening. For example, there are these simple easing equations, which we can use like this: ...
1
vote
2answers
71 views

Binary space partitioning with floor as an object

I have a conceptual problem. The problems comes with the floor I'm rendering and the count of objects. The idea was to reduce rendering with BSP implementation, but the problem that I hit was that the ...
0
votes
0answers
56 views

How would I create a shadowy “Fog of War” effect in Game Maker Studio 2?

You know if you ever played "StarCraft," as you explore the map it's dark until you go to that area. I am trying to replicate this effect in Gamemaker studio 2. I want to create a shadowed area ...
3
votes
1answer
49 views

Randomizing material across meshes - UE4

I have multiple instances of the same mesh which is using the same material. While looking for randomizing textures, I came across texture bombing and so the material in 1 wall looks fairly random. ...
1
vote
1answer
80 views

How do I make sure everyone sees the same distance across different resolutions?

Hello game dev community. I have recently got into making games in a browser window, and me and a friend ran into a common problem. Let's say I have a game like diep.io, where users can control their ...
0
votes
0answers
82 views

Where to create the vertex buffers?

Please note that this is purely an architectural/design question. And sorry for the long post, there are a lot of "thinking out loud" here. I'm working on a simple graphics engine (as a universtiy ...
0
votes
1answer
86 views

How should rendering be structured using SDL?

This question is probably well documented but I can't find any resources. Basically I'm not sure how to structure rendering with SDL in my code. I made a render class which calls the api and the ...
1
vote
0answers
64 views

How to lower the cost of realtime lights?

Besides Deferred rendering, what can I do to make realtime lights cheaper to render? I don't really need them but I could make good use of them in my game. BTW I thought Deferred render would give me ...
1
vote
1answer
129 views

How much slower is it to draw on “half pixels”?

I've noticed that games like Diep.io are using floating decimal points for thin stroke lines on the grid. I have even tried this myself, by adding 0.5 to all of the ...
1
vote
1answer
184 views

How to write a PBR Unlit Shader in Unity?

I have a REALLY specific case here: I have an Texture (a webcam), that is used by a shader to pickup a few x,y colors at the cordinates, and renders to a ...
3
votes
1answer
169 views

SDL render surface from byte array efficiently

In my current project I need to fill a 256x224 screen with the pixel values from an array. The array is declared this way: uint8_t *vram = new uint8_t[7168]; So ...
2
votes
1answer
73 views

How do I render a cylindrical world space onto a flat, 2D view port in Unity?

The question is just a logical extension of this question. So, how should I render a cylindrical world space onto a flat, 2D view port in Unity? Thank you.
3
votes
1answer
69 views

How to access internal data from separated rendering-layer?

I am currently rewriting a project I have been working on last year and I’m utterly stuck trying to "correctly" separate the game-logic from its representation. I know why this is beneficial and I ...
1
vote
1answer
55 views

How to create soft gradient texture

I'm currently testing out Unity 3D and one of the things I can not figure out, is how to create textures that are what I would describe as "Soft Gradient". Here is an image of what I would describe ...
0
votes
0answers
29 views

Render and Update in Robotlegs Like Archtecture

I'm developing a small Snake game using a custom engine and trying to apply Robotlegs-like MVC-S architecture with Commands, Events as well. Currently I put some commands for collision checks, bounds ...
0
votes
1answer
73 views

Running OpenGL app on Windows XP x86 produces incorrect texture colors

I'm working with the Cen64 emulator and I compiled from source a x86 version that operates fine on Windows 10 x64. As soon as I run it on a Windows XP x86 machine the colors are then all incorrect. ...
3
votes
2answers
350 views

What do game developers do when they have to port their DirectX games to PS4/Switch?

I'm not a game developer (hope to be one day though!) and was wondering how devs handle porting their games that use DirectX to PS4/Switch? From what I know neither supports DirectX, only OpenGL, and ...
0
votes
0answers
44 views

DirectX 11 - Rendering to Texture only display the clear colour

I'm attempting to render the scene from the current view matrix onto a texture (currently just for testing purposes) but I can't for the life of me get it to work. Currently all the texture displays ...
1
vote
0answers
45 views

Instances in the Unity Profiler Timeline

What do Instances mean when you click on an operation in the Timeline section of Unity Profiler? In this example: Total: 11.90 ms (10 Instances)
0
votes
1answer
100 views

Godot: error(10) expected '(' after Identifier

When trying to write up a new shader for a material, I've been trying to create a variable to use to alter speed and test animation. Now, the below outputs fine until I try to assign a value to number....
0
votes
1answer
526 views

“RENDER WARNING: there is no texture bound to the unit 0” When not Rendering Texture

I have a webgl program that sometimes renders textures, but mostly renders triangles or lines. When I am not rendering a texture, webgl gives the warning, "...
1
vote
2answers
172 views

Why does my FPS go down so much when rendering basic sprites?

I have a UWP DX11 application and I've recently removed the vsync and noticed that my fps goes down drastically when I'm only drawing very basic sprites on the screen and I'm trying to learn why this ...
0
votes
0answers
13 views

Line Rendere Default Pink Color still Visible

I am using the line Renderer for shooting in my game. Everything works well except for the fact that the default pink color is still visible. I have a Material set, so I do not think it is a problem ...
0
votes
0answers
31 views

Throwing away inner faces of cubes of a transparent voxel structure in Unity3D?

I want to create a "Building site is (not) obstructed." indicator for my building system. How can I throw away those faces which would be hidden if the material would be opaque?
0
votes
0answers
21 views

What are these circles in the Phong model I'm implementing?

I haven't implemented the Phong model for many times but I'm confident it's correct. The only problem I've noticed is this. Seems like a quantization is taking place somewhere : I'm not sure if it's ...
0
votes
1answer
98 views

How do I draw a rectangle in Pygame?

I am getting the error "AttributeError: 'Rect' object has no attribute 'draw'" with this code: ...
7
votes
2answers
2k views

“DirectX will only draw polygons with an [X,Y] from [-1,-1] to [1,1] and with a Z from 0 to 1.”, What does this mean and how to work around it?

I've been following the D3D11 tutorials on Rastertek to expand my knowledge on rendering which I will need as I want to build my own engine, as a hobby. After finally getting a model to be rendered ...
0
votes
0answers
54 views

Rendering a selected part of the terrain with different shading

I'm trying to understand how to modify the shading of the section of the terrain based on some user selection. In a game like Civ5, when a user selects a city or unit, that area is lit up more than ...
0
votes
1answer
148 views

Set multiple render targets with OMSetRenderTargets using ComPtr<T>

I've recently decided to get rid of pretty much all of the raw pointers from my Direct3D code, and I ran into a problem with using ComPtr<T> template with ...
0
votes
1answer
71 views

Why do I get this weird shadow render error?

Using Unity 2018.2.14/15 I've recently been working on a small project and I encountered a very weird problem. It's hard to describe so here is a picture: Originally I assumed it may be an issue with ...
0
votes
1answer
30 views

Player object's model starts to shake after some time

I created a default scene in a new project and imported a model from Unity's asset store and then get this strange behavior of the model starting to shake for no reason after some time after starting ...