uniform Questions

18

Solved

I need an algorithm that can give me positions around a sphere for N points (less than 20, probably) that vaguely spreads them out. There's no need for "perfection", but I just need it so none of t...
Seth asked 7/3, 2012 at 11:39

7

Solved

In this StackOverflow question: Generating random integer from a range the accepted answer suggests the following formula for generating a random integer in between given min and max, with min an...
Ileostomy asked 1/8, 2012 at 12:5

9

Solved

I need to generate 3 random numbers, the amount of which is equal to 1. My implementation does not support uniform distribution. :(
Jay asked 6/4, 2011 at 8:57

3

Say I have a dataframe as such category1 category2 other_col another_col .... a 1 a 2 a 2 a 3 a 3 a 1 b 10 b 10 b 10 b 11 b 11 b 11 I want to obtain a sample from my dataframe so that category1...
Royden asked 12/9, 2016 at 19:49

5

In python for the random module, what is the difference between random.uniform() and random.random()? They both generate pseudo random numbers, random.uniform() generates numbers from a uniform dis...
Collings asked 4/5, 2015 at 12:51

1

Solved

I am learning some basic things about classes and OOP in C++. From what I read the preferred modern way of initializing a variable is to use uniform initialization. In the simple class header exa...
Fenland asked 14/10, 2018 at 18:36

5

Solved

I'm working on a data mining algorithm where i want to pick a random direction from a particular point in the feature space. If I pick a random number for each of the n dimensions from [-1,1] and...

2

Solved

Tried to do just like here: Pass array to shader And like here: Passing an array of vectors to a uniform But still no luck. I think I do just like there but it doesn't work: Here's my JavaScript ...
Mukerji asked 26/7, 2013 at 0:1

3

I have query related jquery. My designer user uniform and i want to remove it form one element at run time with the help jquery. uniform : http://uniformjs.com/ like <input type="checkbox" cla...
Timmi asked 17/4, 2014 at 6:57

4

Let's say we have a binary random number generator, int r(); that will return a zero or a one both with propability 0.5. I looked at Boost.Random, and they generate, say, 32 bits and do something ...
Magenta asked 3/10, 2013 at 19:41

4

Solved

I'm trying to generate a cloud of 2D points (uniformly) distributed within a triangle. So far, I've achieved the following: The code I've used is this: N = 1000; X = -10:0.1:10; for i=1:N j = ...
Defroster asked 24/12, 2012 at 12:25

8

I am using jQuery Uniform to style inputs/selects etcs. However, the checkbox has stopped working. I am appending data sent from an ajax call. Once it's loaded, I use $.uniform.update("input:checkb...
Killen asked 9/7, 2011 at 21:53

3

Solved

I have a design were I'm writing/reading to/from a RAM and perform some computation on the read values. In some cases, I read values from RAM locations where I haven't written anything to yet. This...
Disulfiram asked 7/5, 2013 at 13:10

2

I'm trying to use uniform buffers but it doesn't work as supposed. I have two uniform buffers, one is lighting and the other is for material. The problem is that the colors aren't what they are sup...
Hemangioma asked 6/2, 2012 at 2:36

1

Solved

I'm learning OpenGL and noticed that I have the option to use either glGetAttribLocation() or glBindAttribLocation() when dealing with input attributes but for uniforms, I have to use glGetUniformL...
Landbert asked 15/4, 2014 at 17:57

4

Solved

Working with this, are they technically the same thing, or different? If different, how so?
Corney asked 20/3, 2013 at 15:54

5

Solved

I'm using jquery uniform on one of the project I'm working on. Since this is admin panel, I truly don't have option to show. I will explain my problem What I'm trying to do is quite simple. I'm ad...
Sawmill asked 23/10, 2011 at 18:13

1

Uniforms with the same name but different type/precision This is what i am getting when compiling the shaders, with only the latest Chrome on Windows. nothing else Looking at the http://www.coc...
Wardieu asked 20/11, 2013 at 0:7

1

Solved

I suppose this is a kind-of cross between a pure C++ question and an OpenGL question. I have a uniform buffer and am allocating space in it of sizeof(ShaderData) bytes. I'm using std140 layout on t...
Lukin asked 13/11, 2013 at 14:54

1

Solved

I am passing an uniform array to geometry shader and want to index into it using a variable. I can use variable length array & index with fixed number (numeric constant) OR I can define a fixed...
Eradis asked 8/11, 2013 at 21:26

2

This is a strange problem. If I try to pass a uniform color to the fragment shader, i get a compile error uniform vec4 uniformColor; void main(){ gl_FragColor = uniformColor; } But if I pass t...
Keister asked 25/6, 2013 at 6:44

3

Solved

I want to use multiple select box with multiple width with uniform . Problem is when I do $('#small').uniform({selectClass:'smallSelect'}); $('#big').uniform({selectClass:'bigSelect'}); <sele...
Taphole asked 30/12, 2011 at 7:16

4

How can I change the size of an input select using Jquery Uniform? http://uniformjs.com
Broadway asked 26/10, 2011 at 9:13

2

Solved

I have the following uniform buffer: layout(std140) uniform Light { vec4 AmbientLight; vec4 LightIntensity; vec3 LightPosition; float LightAttenuation; }; I have some issues when buffering ...
Mapel asked 1/4, 2013 at 19:58

4

I'm currently trying to draw floating numbers from a uniform distribution. The Numpy provides numpy.random.uniform. import numpy as np sample = np.random.uniform (0, 1, size = (N,) + (2,) + (2,) ...
Landon asked 17/2, 2013 at 14:47

© 2022 - 2024 — McMap. All rights reserved.