Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 22 Feb 2000
Offline Last Active Feb 20 2015 11:26 AM

Topics I've Started

Ugly StretchBlt

02 February 2015 - 08:33 PM

Hi all,


just coded a small demo that captures the desktop window, and then tries to scale it down and draw it to my dialog' hDC.


Problem is, I'm using StretchBlt, and the final results are quite ugly. I've read several stuff that instructs us to use SetStretchBltMode and SetBrushOrgEx. The end result just isn't up to scratch.


Is there some solution, even if it involves GDI+/ OpenGL/ DirectX/ DirecDraw that can draw into my dialog and resize my original bitmap perfectly?
Also, I'm looking for a somewhat fast solution. I wouldn't want this to take more than 1sec to draw...


Thanks for any tips on this.

Have a great week.

Backpropagation XOR issue

12 December 2014 - 03:23 AM

Hi all,


would just like to know if, for a given problem, in this case the classic XOR binary problem, 

the network will eventually fluctuate to the solution, if given infinite time to do so, or, if due to

learning rate issues, it can get stuck in over-shooting behaviors.


If the learning rate should pose no problem, can it be mathematically said that the network

should travel towards solution-space?


Thank you.

Rendering Astral Bodies and Horizont

13 August 2014 - 05:11 AM

Hi all,


has anyone here worked on something that would render astral bodies, like

stars, constellations, galaxies, planets, taking into account the latitude and

longitude of the user?


I'm tasked with doing something like this, in a browser. If there was some REST API

I could consume and then render the horizon and the astral bodies, that would be

awesome, apart from that I would require the actual equations for calculating

their position above or bellow the horizon...


Thanks for any tips on this,

Hugo Ferreira

Stereographic to CubeMap Conversion...

12 June 2013 - 07:29 PM


I'm coding a simple webGL engine, and would like to import stereographic panoramas (taken from an iPad) into the engine as cubemaps.


Is there any free utility i can download that would accomplish this?


Thank you in advance!

C++ operator overload ->

26 April 2013 - 12:56 PM

Hi all,


I'm back to coding in C++, after a somewhat long stint coding PHP.


I'm rewriting some code, and the way I'd like to deal with it, would be to overload the -> operator, so that I can "call" arbitrary method names, that are assigned at run time by various plugins and libraries that dynamically link to the process.


From what I know, this isn't possible, because the -> operator has to return the function to handle the call, and it does not give us the name of the method...


In pseudo-code:


myClass X;

x.addMethod( "nameHere" );

x.addMethod( "setAge" );


x->setAge( 25 );


- - -

The code, again in pseudo-code:


int operator ->( char* methodName ) 


if( methodName in listOfRegisteredMethods )


return methodFunctionPointer();




throw Exception...




- - -

I know that there have been, recently, changes and updates to the language. I've written myself a lambda function this past week for the very first time. I would just like to know if anything has been added that would allow me to accomplish something like the above.


Thanks for any replies!