| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12
Comments:
<0> *cries* <1> I don't believe it <0> yeah me neither <0> it's the most horrid stuff I've ever seen in my life <1> corstan I thought your Vector cl*** was for a 3D vector (i.e. 3 elements) <1> I also don't know what /cli is or does <0> vawjrwrk: the managed stuff.. <1> /clr <0> yeah ;) <0> typo, it ate my brain <0> 3
<2> i'm trying to debug (set a breakpoint in source) a dll.. the dll is loaded and a the function in dll is invoked from a java program.. i'm using visual c++ 2005 express <2> the invocation is done by supplying command and command parameters in the project properties in visual c++ <2> i verified that the java program is invoked from the vc ide.. but the execution just doesn't stop at the breakpoint <2> any ideas? <1> yeah, it's not really getting called <2> what is? the function of dll? <2> from java code? <1> if the break doesn't happen, it's not getting there <2> i did verify that the java code does execute.. <3> ok <4> hi there. i wanna draq a gradient with 4 colors. imagine a square and each of the 4 pixels in the corners have a different color. i wanna draw a gradient in the area between them. but each color fades away with the distance. how do i calculate the color for each point? <3> so it's not executing in the debugger then. <4> just calculating 4 colors for each color channel and using OR generates something very funny but it's not a gradient by a long shot. does anyone know how to do this gradient properly? <4> (i calculate 4 colors with some linear functions) <2> i don't think it's 'coupled' properly.. i mean there's a source, and there's dll.. so how does the ide really know that source is tied to the dll? <1> Deathmaster why don't you consider how you'd handle 2 points and a gradient between them <1> then doing the 4 should be easy <4> well if i only have 2 points then i would calculate the color like this: color(x)=(color2-color1)*x/MaxX <1> very good <4> in this manner i can have four functions like that <4> but how do i combine the results? <0> yeah <1> well, there are 6 pairs <1> 3 of which contribute in x, 3 in y <4> i tried with color1(x) or color2(x) or color3(x) or color4(x) and believe me you don't wanna see the resulting image =)) <0> Tamama: ^_^ <1> err, 4 and 4 <5> 'lo <1> it's also not clear whether you want to do this in RGB colorspace <4> yes, rgb <1> I said it's not clear....often things look better when you use HSL or HSV <4> well the problem remains the same <4> i have 4 pairs <1> 6 <4> 4xRGB or 4xHSL, it's the same thing <1> it would help of you'd get the number of pairs right <4> hmmm maybe i wan't crystal-clear when i explained it <4> *wasn't <1> 4 point in a square <1> 6 pairs of points
<1> how clear do you want to be <4> ok <4> that's what i meant <1> have you considered (let's label the points abcd going around the square) <4> i understood something else, sorry <4> ok <1> if you find the color along the ab side, and the color along the cd side where your desired point would be (lets make ab and cd vertical, so this would then be the y axis <1> you can easily do the interpolaiton, right? <1> then do the interpolation in the x axis between those two points <4> ok <1> voila, new color <4> and how do i write the expression for the interpolation of the two axis? <1> you have two points <4> that was my problem from the beginning <1> x doesn't change between a and b <1> or c and d <1> you said it was simple between only 2 points <4> between two points it was a simple linear function <1> yes <4> but between four points it's just a simple linear function anymore <1> **** <4> because even the points from row 0 <1> you don't listen <4> i am listening <1> I told you how <4> ok, tell me what to do <4> and i'll write it right now <1> I already did <4> ok so i calculate for the top and bottom rows <1> <1> if you find the color along the ab side, and the color along the cd side where your desired point would be (lets make ab and cd vertical, so this would then be the y axis <1> <1> you can easily do the interpolaiton, right? <1> <1> then do the interpolation in the x axis between those two points <4> and for the left and right columns <1> no <4> no <1> you do two edges <4> ok, just two edges <1> opposite ones <4> ok <4> opposite edges <1> then for a point in the middle you interpolate between the 2 points on the edges w/ the same x or y value <4> aaaah <4> i've got it <4> thanks, i'll try it right now <1> it should at least look better <4> :) <1> it just that I don't like gradients in rgb, I think they look funny <2> whats Unknown Revision error mean for CreateFile? <2> or just in general
Return to
#c++ or Go to some related
logs:
#AllNiteCafe #linux thfabba #chatzone #chatzone #MissKitten #chatzone #linuxhelp #linuxhelp #asm
|
|