Questions tagged [rendering]
Rendering refers to a computer program formatting data for display or printing.
6,354
questions
0
votes
0
answers
18
views
Two problems rendering a qmd file with quarto_render from R
I have a file my_file_to_render.qmd written in RStudio with R. I am trying to render this file with output html format from a file wrapper.R. In wrapper.R I am using:
a_param = "a_name"
...
0
votes
0
answers
17
views
Three.js model containing transparent materials isn't handling layers correctly
I imported a few dozen chunks of a Minecraft world into three.js as a .OBJ file, where some of the materials, like leaves, contain partially transparent areas. Where my problem is occuring is when I ...
0
votes
0
answers
18
views
Constant rerendering state updates
I'm having trouble when I change a text in an input field the state always re-renders and I don't know what to do. I know it's possible to avoid it using with hooks like useRef() and useCallback() and ...
1
vote
1
answer
30
views
Custom 2D Lighting System in Unity
Ok so I've been trying to make a custom 2D lighting system in Unity, and I'm at that annoying stage where I know what I want to do but I'm not sure how to do it.
Here's the plan:
There will be ...
0
votes
1
answer
19
views
How to show the correct component according to the user types
I have two different user type in my react project normal user and admin but to specify that I am not using any database. So I connect metamask wallet and I am getting and the wallet (you can think as ...
0
votes
0
answers
11
views
Unreal Engine - Parallelize camera rendering for multi-cam robotic system to increase FPS performance
Dear Unreal Engine enthousiasts,
Would anyone of you know how to parallelize rendering of multiple cameras in Unreal Engine in order to reduce GPU computation time?
Let me explain. My team and I are ...
0
votes
1
answer
33
views
Understanding how to setup simple HLSL vertex and fragment shaders
I'm trying to understand how to use the HLSL shading language to output my simple vulkan triangle. I'm compiling my shader files with google's glslc compiler and not getting any complaints when ...
0
votes
0
answers
12
views
How do I improve the rendering speed of a component that renders an svg with a polygon with points based on user input?
I have a component that I call AnswerBetaComponent. It returns a beta distribution (a mathematical function, a probability distribution, which could just as well be any other function), based on the ...
0
votes
0
answers
15
views
Is there a plugin to show an After Effect composition on Python?
I want to be able to do an animation on After Effect and render the composition in Python on a window. I don't really want to export it because it would take a lot of space on my PC...
1
vote
0
answers
16
views
Understanding Compositing Layers Issues
I had some users reporting a bug in an app I am working on where keys on our HTML keyboard would disappear for them. After some initial debugging I noticed there was a 3d transform applied to the keys ...
1
vote
1
answer
22
views
React state management rendering for one object or array of objects
I'm learning React and starting with handling state in a CRUD form via the useState Hook. Something like this:
const [data, setData] = useState({});
where data is the object containing the state of ...
-1
votes
0
answers
10
views
How to convert a view to a pdf in Django?
I need to render PDF files dynamically in a Django web app.
I understand there are 2 options :
Render an html template file then convert it to a PDF file.
Convert a webpage into a PDF file directly
...
-3
votes
0
answers
18
views
Get model from coordinates in lwjgl [closed]
I made a voxel game using java with lwjgl and for the optimizations, I'm using the method that only renders faces outside that player can see(not greedy meshing)
I can get directions by adding a unit ...
0
votes
1
answer
26
views
How to render jsx calling non component function in React?
I adding return before jsx but it stops iteration
function App(){
function recursion(object){
for(let key in object){
if(typeof object[key] === 'object'){
<div>{key}</div&...
0
votes
0
answers
42
views
Fix warp in recaster (lua)
function RENDER_RAY(plr,rayNumber,Ray_Distance,RayAmount,rayAngle)
local theta = plr.angle - FOV/2
local diss = Ray_Distance * math.cos(math.rad(theta - plr.angle))
local screenWidth = ...
0
votes
1
answer
26
views
How to use bootstrap with xhtml2pdf?
I need to render PDF files dynamically in a Django web app.
I understand there are 2 options :
Render an html template file then convert it to a PDF file.
I used xhtml2pdf Python library.
The issue ...
1
vote
1
answer
30
views
React render object value where key is variable
I'm trying to render an object where each key is different.
I have to display each key as a checkbox and if it is checked, I want to display the associated values if any in the values array.
My object ...
-1
votes
1
answer
27
views
url_for in Flask always return error 304,even after clearing caches in chrome
<!DOCTYPE html>
<html style="font-size: 16px;">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta ...
0
votes
1
answer
22
views
Together with the message, all information about all messages is displayed
I do chat on action cable. And I have a problem with post view. However, in order to show a message from a user, it additionally outputs the entire hash of all messages in this chat.
This what i get:
...
0
votes
0
answers
14
views
Shadow computation algorithme
I'm trying to make a reallistic physical-based render algorithme, the code is written in python and I'm stuck on an important step of the algorithm, "how can I know if a point is lightned by the ...
0
votes
0
answers
6
views
3D surfaceplot completely blocking 3D scatterplot
I have created a 3D scatterplot with a 3D surfaceplot (the multiple regression equation), but the surface plot completely blocks all of the data points of the scatterplot even when some of those data ...
0
votes
0
answers
7
views
How to automatically generate and draw a smooth curve between two surfaces in JS?
I would like to be able to automatically generate smooth curves between two (flat) surfaces of DOM elements in JS, similar to the Curved Connector in Google Slides:
In GS, you can add a Curved ...
0
votes
0
answers
12
views
17 renderings before showing view - React JS
I'm starting in React. I'm working on an old project that does 17 renderings before showing a view. I have no idea where the problem is. Has anyone ever experienced a problem like this that can help ...
0
votes
0
answers
19
views
How to set rgb colored symbol on specific pos (Win terminal)?
Iam making terminal game but iam struggling with the render part, i want to set symbol on specific pos with rgb color.
so first question is how to set symbol in win terminal on specific pos fastest ...
0
votes
1
answer
13
views
Rspec test fails while rendering
For my user controller, while running the test cases I am facing render issue. It is redirecting to http://test.host/sign_in instead of rendering new.
Controller code
def create
@...
0
votes
0
answers
10
views
Different rendering of same character across browsers
The following character gets rendered differently when rendered under Chrome and Firefox -
œ
Chrome -
Firefox -
I am getting this characters in my application as part of Polish text. Is there a way ...
1
vote
0
answers
32
views
Plotting in 3d does not render correctly
I am trying to plot a number of components in 3d space (in python), but am having issues with the rendering. As an example, the code below plots a sphere with some points on its surface, a ring ...
-3
votes
0
answers
15
views
Rendering issue in android studio kotlin mobile application development
After I finished designing my interface. I ran into a problem known as a rendering problem. I tried several approaches, but none of them worked. When the application is run, it will automatically exit ...
0
votes
1
answer
40
views
QImage 16 bit grayscale with QQuickPaintedItem
I have unsigned 16 bit image data that I displayed by subclassing QQuickPaintedItem in Qt 5.12.3. I used QImage with Format_RGB32 and scaled the data from [0, 16383] to [0, 255] and set that as the ...
1
vote
0
answers
24
views
Custom Java game engine is rendering spaces between tiles when the character moves
So I've been trying to figure out what's wrong with my code, but I've had basically no luck when it comes to finding what's wrong. I've seen plenty of folks who had similar issues but none of the ...
0
votes
0
answers
12
views
How does Unreal Engine achieve material roughness using very few samples?
When using path tracing, rough surfaces look good using very few samples. Even while moving the camera the surface is clearly rough, even though the renderer hardly accumulates frames.
As I understand ...
0
votes
0
answers
6
views
flask giving feedback while loading before rendering
I have a web application with several pages. I one of them (lets call it page1) i send a lot of data when clicking to a form button, that is complied and then showed in the next page (let's call it ...
1
vote
0
answers
18
views
How to fix MIME errors on refresh when using URL parameters
I don't know if I will be able to explain good enough but..
I have a setup like this
page(navigationMiddleware);
page('/', homeView);
page('/login', loginView);
page('/register', registerView);
page('/...
0
votes
0
answers
22
views
Setting up projection and model matrices for 2D rendering with DirectX(or any other graphics api)
I am having trouble making the projection matrix to translate pixel space coordinates into screen space because if you're drawing a proper box in screen space it's going to be affected by window/...
1
vote
2
answers
38
views
How do I reset the GLFW Fragment / Load a different shader during runtime?
I'm writing a shadertoy-like tool for the desktop. It uses GLFW (OpenGL), Glad, and ImGui to render out images.
I've gotten to a point now where I fixed all my previous issues, but I'm now stuck on ...
0
votes
1
answer
70
views
Missing partial with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}
I want to render a form in a show.
I know the error doesn't come from the path or a folder that I forget to create because the partial is not showing, not even in the application.html.erb file ...
0
votes
1
answer
15
views
How to draw sample code from the Cairo documentation?
I'm a complete beginner and would really like to draw some of the shapes from https://www.cairographics.org/samples/ and tinker a bit with the placement of these shapes. But first I need to set ...
0
votes
1
answer
23
views
Custom Game Engine Rendering Blurry Images After Movement
I' m trying to create my own game engine. So far, I can render a background (map) and draw the player.
Also, I created a control system for the player, which is working correctly.
But when I move the ...
0
votes
0
answers
31
views
Why will it not h1 render a variable in my json database
I have a database where it has different rooms and whether each room is booked at a certain time (it's true if its available and false when it's booked). Whenever I try to console.log the value it ...
0
votes
1
answer
43
views
are there anyway to prevent the OnAfterRenderAsync to run the JS function for every rendering in Blazor?
I call jquery fun in my blazor app. I'm doing some services in Onin - I would like to call this function in my razor component. I did use the following code in the component. The function is showing ...
0
votes
0
answers
41
views
Trying use openAI gym, getting a pyglet/openGL error on running
I am trying the following code:
import gym
env = gym.make('ma_gym:Switch2-v0')
done_n = [False for _ in range(env.n_agents)]
ep_reward = 0
obs_n = env.reset()
while not all(done_n):
env.render()
...
1
vote
1
answer
36
views
How do I load Next.js App after promise is resolved?
How do I achieve the code below using Next.js.
I believe there is an issue with Next.js not being able to access the window object unless you're inside a useEffect(() => {}) hook.
Changing to ...
0
votes
3
answers
60
views
Column/SingleChildScrollView not scrolling
I'm learning flutter to make an app. Here I'm trying to make a page to show the full post. The problem is that the page isn't scrolling as a single unit.
class SinglePostPage extends StatefulWidget {
...
1
vote
0
answers
72
views
Small (M)SDF font textures have artefacts
I am testing some font rendering with Multi-channel signed distance fields (MSDF). Everything looks perfect until I move further away from the rendered text, and it starts having weird artefacts (...
0
votes
1
answer
46
views
Res.user attribute object loading page Odoo
A mate tried to install some web templates for the backend and got a 503 HTTP error "Service Unavailable" on the browser.
I saw the modules and deleted from ir_module_module table but ...
0
votes
0
answers
26
views
Chrome DevTools React Profiler timings vs. reality
In the React Profiler in Chrome DevTools the timings for the app re-rendering are as follows:
That means 210ms to re-render the whole app. In reality it takes around 2 seconds which is a lot more ...
0
votes
0
answers
24
views
render one photo from mobile while it is rendered 4 photos on web Nuxtjs
there are four images rendered from an API in the web browser
i want to render only one photo while opening it from mobile
what are the possible ways to achieve this?
the data fetched all the images ...
0
votes
0
answers
52
views
how to reset the phone number text field when you change the country code
in react phone input one property is there international that helps but in react phone input 2 this property is not working. In the react phone input 2 if you want to change the country code after ...
3
votes
1
answer
43
views
Qt3D Different Material for different RenderPasses
I have a QML Scene3D with 2 viewports, left and right half of window. The scene contains two cameras (one per viewport) and a torus mesh. I want to use a viewport-specific material for the same torus, ...
0
votes
1
answer
30
views
Unusual Render and Re-renders of the child and parent component causing layout flicker
I am trying to make a dashboard for teachers where the details of the teachers would be displayed. I am using nested routing to display the components related to the teacher's dashboard and therefore ...