• Advertisement

dream rz

Member
  • Content count

    11
  • Joined

  • Last visited

Community Reputation

1 Neutral

About dream rz

  • Rank
    Member

Personal Information

  • Interests
    Programming
  1. I use translation software, actually. I have some questions to ask your: I've heard rumors... English native speaker no study "International Phonetic Alphabet (IPA)". emmmm... Now comes the question, how real is this? so I longer need learn to "IPA"? And............................ About English grammar. English grammar book is inaccurate in China, like "Chinglish". your cannot understand what I am saying. So... Your don't need to study grammar? I see this:https://www.mezzoguild.com/you-dont-need-to-study-grammar-to-learn-a-foreign-language/ Now, I don't know what to do now, my English was so terrible. I am so busy that I have no time to study English. I think... in movies, in games, in news... to study English? Of course I know, recite words is important.
  2. I had always thought You are all trust "antivirus software". McAfee, Avira Free Antivirus, Kaspersky, ESET NOD32... Anti-virus software is a necessary part of any security implementation, why do you use “code signing”? I suppose there must be some discrepancies between us in comprehension. In our country........sorry, piracy software is everywhere. what is a trusted publisher? Use more "antivirus software".
  3. just picture? I hope you use “RGB image”, get decoding data of coded images. Now, developing codec on different platforms.
  4. I'm from china. Here's my homepage: www.rlzl.net , indie game developers. I have no ftp-server, all data from other download site. I will provide a hash and readme file write in: "Use your antivirus software to do my application scan for virus infections"
  5. So, it is really a dilemma. For the last few years, I was always “shape pickup”. To tell the truth, just about enough of this.
  6. Of course, I know this way. high efficiency, imprecise. int circle_x , circle_y , circle_radius; int mouse_x , mouse_y; int test_x = mouse_x - circle_x;//get distance difference int test_y = mouse_y - circle_y; int i = sqrt(test_x * test_x + circle_y * circle_y);//get square root if(i <= circle_radius);//mouse pointer in a circle
  7. There appears to be no better way. On the basis of the theory of click detection, looking for other ways to do this. Anyway, thank you.
  8. Yes, as you said. that's exactly what I mean. but.......but......... I want a more efficient means. applications run faster................. only taking small area in internal memory....................... Because in the game, FPS is very high(60 or ????). work to every frame. so, there may be a better solution to the problem??
  9. Any 2D graphics engine. SDL2, openframeworks(use OpenGL) ............ textures is rectangular and loading a PNG image as a texture. this PNG is a button, maybe it's various shapes. the mouse must click the effective alpha channel. alpha >= 100 maybe.
  10. A texture rectangle, texture type is RGBA. the alpha channel like this: (0=0,x=255) [0][0][0][0][0][0][0] [0][0][x][x][0][0][0] [0][x][x][x][0][0][0] [0][x][x][x][x][x][0] [0][0][0][x][x][x][0] [0][0][0][x][x][0][0] [0][0][0][0][0][0][0] I want a function to picking. now I have a very clumsy solutions: //system Init............. //.......... //pixel buffer to texture....... (texture is handle, a number.cannot get pixel matrix.) //.......... BYTE pixel_alpha[7][7];//save alpha channel matrix //.......... texture.draw(30,30);//draw the picture in the window x=30 , y=30 //.......... if(picking(GetMouseX,GetMouseY))MessageBox("click!"); // picking functio //.......... /*picking function*/ bool picking(int x,int y) { int mouse_to_image_x, mouse_to_image_y;//get mouse position in the image mouse_to_image_x = 30 - x; mouse_to_image_y = 30 - y; if((mouse_to_image_x < 0 && mouse_to_image_x > 7) && (mouse_to_image_y < 0 && mouse_to_image_y > 7))return false;//mouse is not in the image for(int i = 0; i < 7 * 7; i++) { if(pixel_alpha[mouse_to_image_x][mouse_to_image_y] == 255)return true;//in the image and alpha channel is 255 } return false; } //============================================================================================= but...... 1.an excessive amount of memory in alpha channel matrix. 2.i think efficiency is not high. so, how to do? not is ray picking, What is this technology called?
  • Advertisement