Questions tagged [render]

Rendering is the process of generating an image from a model (or models in what collectively could be called a scene file), by means of computer programs.

A scene file contains objects in a strictly defined language or data structure; it would contain geometry, viewpoint, texture, lighting, and shading information as a description of the virtual scene

5211 questions
1
vote
0 answers

Send array of objects to render in React

Having an array of this form: [{"game_id":4,"city":"London","year":2018,"athlete_id":"1"}, {"game_id":2,"city":"Paris","year":2016,"athlete_id":"2"}] it is received from back-end and stored like this: callAPI() { …
Leo Messi
  • 5,157
  • 14
  • 63
  • 125
1
vote
1 answer

React Native - how to re render a component every x milliseconds? "this.setState is not a function?"

Alright, Im trying to update the properties and/or text of a component every x milliseconds. I dove into https://www.npmjs.com/package/react-interval-renderer and the likes, however I got errors pertaining to s. Im now looking at simply react native…
blue
  • 7,175
  • 16
  • 81
  • 179
1
vote
1 answer

Why my GPU load is low when is rendering a scene with Blender?

I have a scene in Blender and I render it with GPU Compute, Cycles. The problem is when the scene is rendering, my GPU load is under the 5% while the CPU is doing all the render work. My GPU is a Nvidia GTX 745 and my Cpu an Intel core I5. The…
Cardstdani
  • 4,999
  • 3
  • 12
  • 31
1
vote
0 answers

Do I have to append textarea to the document to get its height?

Following code: let textArea = document.createElement('textarea'); textArea.value = responseTextFromXMLHttpRequest; $('body').append(textArea); console.log(textArea.scrollHeight); Gives me this result in the…
1
vote
2 answers

2 Mutually Exclusive InputComponents Referring to the same Field is updating the same field Twice

I have a screen with 2 JSF Input Components: inputText and inputText with suggestionBox. They are both bound to the same field, but only one can be visible/rendered (mutual exclusion). The thing is that if I write something in one and then submit,…
Cosmin Cosmin
  • 1,526
  • 1
  • 16
  • 34
1
vote
5 answers

API call in render method in React inside map

I have a userId array and I need to show the list of names related to that array. I want to call API call inside the render method and get the username. But this is not working. How can I fix this issue? Below is my render method: render(){ ... …
shayanmalinda
  • 1,925
  • 3
  • 12
  • 23
1
vote
1 answer

In React, why does setState in a setTimeout only work properly with a copy of the state?

In my code below, I placed setCards inside a setTimeout but after 1 second the render will only be correct if I pass in a copy of the state: [...cardStates] rather than cardStates itself. If I don't do this, the setCards will render the cardStates…
eLpupil
  • 13
  • 2
1
vote
0 answers

c# MediaComposition.RenderToFileAsync empty mp4 file

I try to render a MediaComposition with the RenderToFileAsync method. The file is created but the file is empty (0Ko) and the "TranscodeFailureReason" is "Unknown". I'm looking for explanation online for hours and i can't find a solution. I started…
1
vote
1 answer

Efficient 3D Line Plot in Plotly js?

Drawing lines is hard. I am looking for a way to draw a lot of 3D line segments in Plotly without the corresponding huge time cost, where drawing ~1000 segments takes over 10 seconds. I am currently using scatter3d lines. I understand that…
leggles
  • 11
  • 1
1
vote
1 answer

Child component does not rerender when parent changes prop

The parent component: const Parent = ... var render = {}; render.value = false; ... return (
user12546101
1
vote
1 answer

How to get PDF Destination with CGPDF

I have a pdf file, I want to render it on ipad. But I don't know how to get a named destination and how to implementation of the GoTo Action on ipad. Names > Dests > Kids > Names > Annots Names > Dests > Kids > Names > Annots > A - Names > Dests…
user476489
  • 101
  • 6
1
vote
1 answer

How to show a message in a Flask page using redirect(url_for) method?

I have a contact form, where the user gets to enter his name, phone, email and a feedback message. At the push of the submit button, I want to show a message in the html page, to inform him that the message has been recieved. How do achieve this? I…
Viktor
  • 79
  • 1
  • 8
1
vote
1 answer

Is it possible to listen a React render of a component after compilation (in browser console for example)?

is there a way to listen to the render event of a react component, once React compiled the code ? Here is the context. I don't have access to the React source code, but only to the compiled code. I try to change the wording of a button, but my…
Janus
  • 645
  • 2
  • 7
  • 18
1
vote
0 answers

concrete5: How to render RESTful content programmatically on a page like in Laravel

What I'm trying to do is to break down c5 single page controllers and views to be closer to RESTful API. Take for example a Classifieds package. It has a Dashboard controller called Classifieds in…
linuxoid
  • 1,415
  • 3
  • 14
  • 32
1
vote
0 answers

C/C++ DirectX9 copy pixels at rect to another rect on the screen

Background: Sorry for my English . So I am in a slightly unique situation in the scenario. I am working on a project that involves using a DLL proxy to intercept DirectX9 calls and dnd control drawing of a game.They are things that are statically…
LUser
  • 1,127
  • 4
  • 23
  • 39
1 2 3
99
100