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
1answer
23 views

Display object at different position

Id' like to create impression of shaking holographic image of NPC in Unity 2018, but moving it with transform will cause unnecesary transform-rigidbody syncing, and using Rigodbody.position isn't an ...
0
votes
1answer
300 views

Minecraft/OpenGL - Create Multiple viewports

I'm working on a project for the game and i have been trying to draw a second smaller "window" that would act like a second camera, independent from the player. I have looked into glViewport however ...
1
vote
1answer
236 views

Queued rendering in LibGDX 2D

In my 2D game project, as well as in LibGDX in general, are a lot of different entities that need to be rendered(static images, sprites, animations, etc...), as well as have certain effects applied (...
1
vote
0answers
120 views

How to composite my UI render target over my backbuffer?

I have two render targets, the back buffer and another target that I am using to draw UI (at the moment this is only a quad on-screen). I have gone through the graphics debugging and checked that ...
0
votes
1answer
102 views

Sun model matrix

I'm playing with sun implementation in my engine and I correctly built model matrix using below order of matrix operations: Translate to camera position. Calculate x and y axis of rotation matrix ...
0
votes
0answers
88 views

How can I create explosions like in Zelda: Breath of the Wild?

The explosions in BotW look spectacular. Here's a video of them in slow motion: https://www.youtube.com/watch?v=bZtaNoUOSDQ It looks like it's not all billboards, but also some volumetric geometry - ...
0
votes
3answers
331 views

Why do we need a depth buffer to display a single 3D cube?

According to a Vulkan tutorial I am following, I will need to create a depth buffer in order to display a 3D cube: However, as far as I understand, depth buffers are used for the Z-buffering ...
0
votes
1answer
442 views

Using 3D models in an 2D Game in libGDX

In my libGDX 2D RPG-Game (like Zelda or something) I want to display some items as 3D-Objects. Since I'm using an OrthographicCamera like this: ...
1
vote
3answers
230 views

Draw the HUD just once on the canvas

I am not able to draw only one HUD of my game on a separate canvas, so I do not have to redraw it to each frame, I have four functions, init(), render(), loop() and drawHUD(): init() is my function ...
1
vote
0answers
641 views

How to Load PDF file in runtime using PDF Renderer Asset in unity?

Hello Guys : I am working in Unity PDF Renderer. I will purchased that Asset but i need to Know, How to load PDF file one by one in run time in File path mode but old PDF File will remove and Load new ...
0
votes
1answer
309 views

Using PyOpenGL, can I rotate raw data rather than the current matrix?

I'm trying to create a sort of PyOpenGL renderer for the Bullet physics engine, and at the moment I'm rotating my basic cubes with math in Python. However, if I do the math in Python that's going to ...
0
votes
1answer
237 views

Artifacts in unity shading

I created block of 3x3x3 cubes, disabled shadows, set directional lighting color to white and ambient to black. And I'm getting this: Any idea what is going on and how to fix it? Effect is visible ...
0
votes
0answers
328 views

Vulkan: Unable to render using multiple view ports

I have been trying to enable multiple viewports in my Vulkan Pipeline but have been unsucsessfull. I used this code sample as a reference point. The problem is that when I attempt to draw two side by ...
0
votes
1answer
87 views

Scale screen space quads (used in font rendering)

I have quads positioned in <0, 1> x <0, 1> coordinates. I use this system for font rendering. In vertex shader I have: ...
0
votes
1answer
712 views

JFrame pack() method

I'm quite new to java. I was developing a game using java and I realized that the position of pack() method can influence rendering. For instance: Frame Class ...
1
vote
1answer
324 views

Reducing texture bindings in LibGDX when drawing text

I'm making custom menus and buttons (I don't want to use scene2D) and I have everything in atlases, but when I draw a button, if it has text, the texture binding is always x2 because of the switching ...
0
votes
1answer
527 views

Graphics2D.drawImage not working

I'm quite new to java. I'm trying to come up with my own game after watching a few video tutorials. However, I encountered a problem where I cannot draw an external image file that I loaded using the ...
0
votes
1answer
121 views

Intel GPU running faster than Nvidia GTX 1060

My app in its current state renders only 2 triangles to the screen using OpenGL. I am using std::chrono::steady_clock for frame counting. With Intel graphics, I ...
0
votes
1answer
311 views

Rendering an isometric tilemap

I have a tile which is 512x256 pixels and I'm trying to render it in an isometric fashion. I have this helper function: ...
1
vote
1answer
1k views

What's the use and difference between Forward, Deferred and Physically Based Rendering?

Maybe I'm still confused about my own understanding, Forward Render: render the lighting of an object according to the light source in the scene. (e.g Phong) Deferred Render : render the scene to ...
1
vote
2answers
479 views

Managing different types of Actors/Entities in a rendering engine

I'm coding a simple game engine using DirectX11, and I'm stuck on how to implement a kind of ECS. Now my rendering system look like this (sorry if the diagram is not real UML, it's just for ...
0
votes
2answers
915 views

OpenGL Array Texture generates black texture

I am creating a game using OpenGL that has many textured cubes. I am trying to use an Array Texture to load multiple textures from one file. I tried to setup my texture atlas; however, all that ...
0
votes
1answer
406 views

Screen Capture rendered on a RenderTexture in Unity

I have a pretty wild idea for a unity application that would work on a multi-display setup. The app would be running in full screen mode on one of my displays, and the contents of the remaining two ...
3
votes
1answer
274 views

Do I have to take aspect ratio into account, when computing a direction in View Space?

I read an article about implementing a Single-Pass Volume Renderer. After thinking about it, I have a question, which concerns the provided GLSL code snippet of the Fragment Shader. To calculate the ...
0
votes
0answers
28 views

Why are my explosions not showing?

I'm creating a space shooter using type script and I don't understand why explosions won't work meaning that nothing is drawn on the screen and I don't understand what I'm doing wrong. ...
0
votes
0answers
130 views

Render problems (black, purple and blue effects) in old GPU and Unity3D 5.6 project on Unity 2018

Well, I have a PC that has a GPU from 2009, and now I have some problems with a fork. The project was on Unity 5 (2015) and I have upgraded it to Unity 2018.1.0, without any problems. But some times,...
1
vote
2answers
929 views

Problem with draw distance in Unity editor 3D view

The Unity editor scene renderer is not letting me get a close-up view of anything. As the camera moves closer, the geometry closest to the camera just disappears. It's as if the draw distance has ...
3
votes
1answer
1k views

Is there a way to run Unity without rendering the scene on the monitor (headless)?

I am doing some machine learning and I get my environment from Unity in the form of images but the training is taking too long and it keeps me from doing anything else on my system. Is there a way to ...
0
votes
0answers
29 views

SetColorMod() with mini delay when the texture is rendered for the first time

I have one image.png that I load using SDL_IMG. I load by creating a surface. Then I create a texture using CreateTextureFromSurface() and I free the original surface. I repeat the same process but ...
1
vote
1answer
52 views

How can I render 3d pictures synched frame by frame to a keyed video?

I'm developing a software that aims to combine a keyed video with a 3D rendered one, synchronously frame by frame. Each frame of video should be combined with a timely corresponding frame of 3D ...
0
votes
2answers
769 views

Graphics API abstraction architecture

I'm developing a 3D game engine in C# and I was just wondering what are the different ways I can approach designing a graphics API abstraction. My original design was going to be something like this: ...
1
vote
0answers
53 views

Wave interference like render effect

(Someone on gaming told me to better post this here.) So in a lot of games lately I've seen this weird "light interference effect" where objects on the edges of my screen become red and blue blurry. ...
0
votes
1answer
41 views

GLFW- Help implementing glBufferedData

Good Morning, I've been trying to learn some OpenGL by following the tutorials on learnopengl.com and I've hit a bit of a snag. I'm trying to implement the same functionality as the "Hello Triangle" ...
0
votes
1answer
642 views

OBJ Loader not working correctly

I'm currently trying to implement my own OBJ Loader for use with FreeGLUT with C++. This is my current OBJ Loader: #include "OBJLoader.h" #include #include #include #include ...
1
vote
0answers
176 views

How can I convert this 2D pixel array into a 1D pixel array?

I have this 2D array that works like this, and I made this image to help illustrate what my 'Screen' class's array represents. Basically, the first part [x][] is how many scan-lines there are. And ...
0
votes
1answer
85 views

Vertices displaced when smoothing in Maya

The issue below appears when smoothing in maya. I would prefer to solve the problem normally as opposed to import/export obj. Below the image is a .ma file you can download yourself. File: https://...
0
votes
2answers
657 views

How to render many tiles fast if zoomed out? (Monogame/xna)

I'm currently trying to optimize my tile engine. I used monogame with the spritebatch first, but that doesn’t works well. I have read many articles how I could optimize my rendering code. I moved ...
0
votes
1answer
105 views

Different z index within the same tile

When you are looking at this image: the player is standing behind the tree. I know that can be accomplished by drawing the background first the player second and the upper tree part after that. The ...
1
vote
1answer
920 views

How can I improve my rendering performance in Java?

How can I improve the performance of my rendering? Currently, I'm rendering with java.awt.Graphics, but it seems to be starting to slow down since I'm adding new stuff to render. My rendering setup: ...
0
votes
1answer
664 views

How to draw geometric shapes to a texture?

How can I create a texture containing a geometric figure using SDL2? I saw there is a way to convert Surface to Texture, and I also saw that there is a way to draw directly to the screen using ...
0
votes
1answer
89 views

Hardcode model data into geometry shader

I have this idea for creating a point cloud and passing an integer into geometry shader to determine which model to draw, each model has the same amount of vertices etc and it would be hardcoded into ...
1
vote
2answers
654 views

How do I get from orthographic to perspective?

I programmed a cube in java and calculated the x y and z position for it's rotation on the x,y and z axis but I'm finding it hard to display the z axis i've been trying to change the distance of the ...
1
vote
1answer
102 views

Unity: Render only select objects but show previously rendered objects

I am making an RTS game which is having performance issues. Is it possible to render the ground and units separately so I can only render the ground when the camera moves but keep the result ...
8
votes
1answer
280 views

How to draw a Voronoi Splitscreen view in GMS, where each player's screen area is a polygon shape?

I'm trying to implement the Voronoi Splitscreen effect that Squirrel Eiserloh described at GDC 2016, and I'm having trouble figuring out how to 'clip' the rendered scene for one player along a ...
2
votes
1answer
341 views

Possible bottlenecks when rendering sprites programmatically in Unity using Graphics.DrawMesh()?

I'm currently trying to render sprites in Unity without using a sprite renderer component. So far using Graphics.DrawMesh() I have this: ...
2
votes
3answers
378 views

How can I achieve long-distance rendering of static terrain and props in an open-world context?

How can I perform seamless rendering of long-distance vistas in a fashion suitable for an open-world game (e.g., where the player is relatively unconstrained in how they traverse the world)? For the ...
0
votes
2answers
447 views

Setting object-specific uniforms in a render queue

I am currently trying to write a (very simple) queued renderer using OpenGL. My current idea looks like this: ...
0
votes
1answer
127 views

Scene components and renderer

I'm currently writing a very small game engine for learning purposes, and hit a block when trying to separate the engine's logic from the "rendering" module. My current approach is to feed my ...
0
votes
1answer
551 views

Approaches to draw multiple objects

I'm looking for an efficient way to render multiple object with unique texture sets each. Right now I combine multiple objects into a single static vertex and index buffers in the way like this: <...
0
votes
1answer
42 views

Is multiple material on same mesh cause low perf?

I'm making something like "Low poly" style game. For that, I'm using multiple materials for each mesh without uv mapping and texturing. Luckily, only weapon does this, others not. Also it's first ...

1
3 4
5
6 7
23